Class EntityManagerHolder
java.lang.Object
org.exoplatform.commons.persistence.impl.EntityManagerHolder
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.
- Version:
- $Revision$
- Author:
- Benoit de Chateauvieux
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EntityManagerHolder
public EntityManagerHolder()
-
-
Method Details
-
get
public static jakarta.persistence.EntityManager get()
-