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#4101752

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101752
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to