public interface JpaContext
ApplicationContext
.Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManager |
getEntityManagerByManagedType(Class<?> managedType)
Returns the
EntityManager managing the given domain type. |
javax.persistence.EntityManager getEntityManagerByManagedType(Class<?> managedType)
EntityManager
managing the given domain type.managedType
- must not be null.EntityManager
that manages the given type, will never be null.IllegalArgumentException
- if the given type is not a JPA managed one no unique EntityManager
managing this type can be resolved.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.