I think that the most quick and efficient way is to use hql queries View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071181#4071181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071181