[jboss-user] [JBoss Seam] - Re: Seam, EntityManager and Criteria

petemuir do-not-reply at jboss.com
Wed Nov 8 14:11:08 EST 2006


Yes.  Just get the Hibernate Session from the EntityManager.

....
  | @In(create=true) EntityManager em;
  | ...
  | public void find() {
  |    Session s = (Session) smsDatabase.getDelegate();
  | ...
  | }
  | ...
  | }

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

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



More information about the jboss-user mailing list