I suggest you use DynamicQL which allows you to define and execute JBossQL (EJB-QL) queries at runtime. This is described in the JBossCMP documentation available from FlashLine ($10).
-dain Emerson Cargnin - SICREDI Servi�os wrote: > Have anyone had this problem : > > I need to find some ejb's entities based on a filter that is compound of > 3 values : state, city and bank. the ejb-ql coul'd be : > > select object(p) from Praca p where p.city.oid=$1 and p.state.oid=$2 and > p.bank.oid = ?3 > > but my filter let the user choose 'all' for each of the filter field, > like : state=all city=all bank=A_BANK. Do I need to define one ejb-ql > finder for each possibility work when one of the filter is set to > 'all'??? isn't there other solution??? > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
