what version? In 3 you can get a hibernate session and do whatever you want. in 4 there are query api's. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4250374#4250374 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250374