Class EntityManagerHolder

java.lang.Object
org.exoplatform.commons.persistence.impl.EntityManagerHolder

public class EntityManagerHolder extends Object
Proxy that returns an EntityManager instance. If there is an entityManager already started, it will return it. If no entityManager is found in the context, it will create a new one and close it at the end of the execution of the method.
  • Constructor Details

    • EntityManagerHolder

      public EntityManagerHolder()
  • Method Details

    • get

      public static jakarta.persistence.EntityManager get()