what is the advantage of combining it into one query compared to all the hassle you get into? The number and performance of the queries? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255022#4255022 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255022