[jboss-user] [JBoss Seam] - Re: Queries with optional arguments

pete.muir@jboss.org do-not-reply at jboss.com
Mon Nov 5 08:23:25 EST 2007


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



More information about the jboss-user mailing list