Your solution is correct and works. EJB-QL is very limited. But for performance reasons you might want to issue a single query to database and let the database do the work in one round-trip.
A JBoss-specific approach can be seen in http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch11.chapter.html#ch11.dynamicql.sect View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881309#3881309 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881309 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
