Class JpaEntityInformationSupport<T,ID>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport<T,ID>
- All Implemented Interfaces:
JpaEntityMetadata<T>,JpaEntityInformation<T,,ID> EntityInformation<T,,ID> EntityMetadata<T>
- Direct Known Subclasses:
JpaMetamodelEntityInformation
public abstract class JpaEntityInformationSupport<T,ID>
extends AbstractEntityInformation<T,ID>
implements JpaEntityInformation<T,ID>
Base class for
JpaEntityInformation implementations to share common method implementations.- Author:
- Oliver Gierke, Mark Paluch, Greg Turnquist
-
Constructor Summary
ConstructorsConstructorDescriptionJpaEntityInformationSupport(Class<T> domainClass) Creates a newJpaEntityInformationSupportwith the given domain class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JpaEntityInformation<T,?> getEntityInformation(Class<T> domainClass, jakarta.persistence.EntityManager em) Creates aJpaEntityInformationfor the given domain class andEntityManager.Returns the name of the entity.Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, getRequiredId, isNewMethods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaTypeMethods inherited from interface org.springframework.data.jpa.repository.support.JpaEntityInformation
getCompositeIdAttributeValue, getIdAttribute, getIdAttributeNames, getRequiredIdAttribute, hasCompositeId
-
Constructor Details
-
JpaEntityInformationSupport
Creates a newJpaEntityInformationSupportwith the given domain class.- Parameters:
domainClass- must not be null.
-
-
Method Details
-
getEntityInformation
public static <T> JpaEntityInformation<T,?> getEntityInformation(Class<T> domainClass, jakarta.persistence.EntityManager em) Creates aJpaEntityInformationfor the given domain class andEntityManager.- Parameters:
domainClass- must not be null.em- must not be null.- Returns:
-
getEntityName
Description copied from interface:JpaEntityMetadataReturns the name of the entity.- Specified by:
getEntityNamein interfaceJpaEntityMetadata<T>- Returns:
-