[jboss-user] [jBPM] - Re: [jBPM4.2] - Entity Manager

Michael Wohlfart do-not-reply at jboss.com
Tue Dec 14 08:12:49 EST 2010

Michael Wohlfart [http://community.jboss.org/people/mwohlf] created the discussion

"Re: [jBPM4.2] - Entity Manager"

To view the discussion, visit: http://community.jboss.org/message/575899#575899

jBPM4 uses hibernate session internally, so the closest thing to an EntityManager you can get from jBPM4 is a HibernateSession wrapper, try
DbSessionImpl dbSession = EnvironmentImpl.getFromCurrent(DbSessionImpl.class);
in an execute() method or command instance

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101214/22477b01/attachment-0001.html 

More information about the jboss-user mailing list