[jboss-user] [JBoss Seam] - Using @In to get the Hibernate session

EricJava do-not-reply at jboss.com
Thu Jan 31 21:48:29 EST 2008


I'm using SMPC, and Hibernate is the underlying provider.  I can't live without Criteria queries.  Is it reasonable to do this:

@In("#{entityManager.delegate}")
  |  private Session session;

?

My entire app won't work without using Hibernate as the provider, and I need to use getDelegate() anyway, so any reason not to do it that way?  Does the SMPC figure everything out when I use EL to do getDelegate() like that?

Thanks


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125349#4125349

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125349



More information about the jboss-user mailing list