1 Reply Latest reply on Dec 14, 2010 8:12 AM by mwohlf

    [jBPM4.2] - Entity Manager

    justin.l

      Hi

       

      Can anyone please guide me how to get the Entity Manager from jBPM API.

       

      Thanks!

        • 1. Re: [jBPM4.2] - Entity Manager
          mwohlf

          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