1) If you use hibernate annotation extensions then org.hibernate.annotations.Table and
org.hibernate.annotations.Index allow you to do this.
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=3988795#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...