Class ContainerManagedEntityManagerProvider
java.lang.Object
org.axonframework.springboot.util.legacyjpa.ContainerManagedEntityManagerProvider
- All Implemented Interfaces:
EntityManagerProvider
@Deprecated
public class ContainerManagedEntityManagerProvider
extends Object
implements EntityManagerProvider
Deprecated.
EntityManagerProvider implementation that expects the container to inject the default container managed EntityManager
instance. This implementation expects the container to have exactly one PersistenceUnit, or provide a default if no
explicit Persistence Unit Name is provided.
- Since:
- 1.3
- Author:
- Allard Buijze
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.EntityManagerDeprecated.Returns the EntityManager instance to use.voidsetEntityManager(javax.persistence.EntityManager entityManager) Deprecated.Sets the container managed entityManager to use.
-
Constructor Details
-
ContainerManagedEntityManagerProvider
public ContainerManagedEntityManagerProvider()Deprecated.
-
-
Method Details
-
getEntityManager
@Nonnull public javax.persistence.EntityManager getEntityManager()Deprecated.Description copied from interface:EntityManagerProviderReturns the EntityManager instance to use. Note that the implementation is responsible for keeping track of transaction scope, if necessary. Generally, this is the case when using application-managed EntityManagers.- Specified by:
getEntityManagerin interfaceEntityManagerProvider- Returns:
- the EntityManager instance to use.
-
setEntityManager
public void setEntityManager(javax.persistence.EntityManager entityManager) Deprecated.Sets the container managed entityManager to use. Is generally injected by the application container.- Parameters:
entityManager- the entityManager to return upon request.
-
ContainerManagedEntityManagerProviderwhich moved to jakarta.