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