Class DefaultJpaContext
java.lang.Object
org.springframework.data.jpa.repository.support.DefaultJpaContext
- All Implemented Interfaces:
JpaContext
Default implementation of
JpaContext
.- Since:
- 1.9
- Author:
- Oliver Gierke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManager
getEntityManagerByManagedType
(Class<?> type) Returns theEntityManager
managing the given domain type.
-
Constructor Details
-
DefaultJpaContext
- Parameters:
entityManagers
- must not be null.
-
-
Method Details
-
getEntityManagerByManagedType
Description copied from interface:JpaContext
Returns theEntityManager
managing the given domain type.- Specified by:
getEntityManagerByManagedType
in interfaceJpaContext
- Parameters:
type
- must not be null.- Returns:
- the
EntityManager
that manages the given type, will never be null.
-