public class ContainerManagedEntityManagerProvider extends Object implements EntityManagerProvider
PersistenceContext
,
EntityManager
Constructor and Description |
---|
ContainerManagedEntityManagerProvider() |
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManager |
getEntityManager()
Returns the EntityManager instance to use.
|
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Sets the container managed entityManager to use.
|
public ContainerManagedEntityManagerProvider()
public javax.persistence.EntityManager getEntityManager()
EntityManagerProvider
getEntityManager
in interface EntityManagerProvider
public void setEntityManager(javax.persistence.EntityManager entityManager)
entityManager
- the entityManager to return upon request.Copyright © 2010–2018. All rights reserved.