JBoss Community

Re: [jBPM4.2] - Entity Manager

created by Michael Wohlfart in jBPM - View the full discussion

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