Use
org.hibernate.Session session = (Session) entityManager.getDelegate();
to get the Hibernate Session out and use the Criteria API. Yes, this does make your
application non-portable to other JPA implementations, but that is the price you pay.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101752#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...