2) I think you can use Native Queries for this (assuming you mean from EJB3 not J2EE). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991277#3991277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991277