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
ConstructorDescriptionJpaEntityInformationSupport
(Class<T> domainClass) Creates a newJpaEntityInformationSupport
with the given domain class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JpaEntityInformation<T,
?> getEntityInformation
(Class<T> domainClass, jakarta.persistence.EntityManager em) Creates aJpaEntityInformation
for the given domain class andEntityManager
.Returns the name of the entity.Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType, isNew
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, getRequiredId, isNew
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
Methods inherited from interface org.springframework.data.jpa.repository.support.JpaEntityInformation
getCompositeIdAttributeValue, getIdAttribute, getIdAttributeNames, getKeyset, getRequiredIdAttribute, hasCompositeId
-
Constructor Details
-
JpaEntityInformationSupport
Creates a newJpaEntityInformationSupport
with 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 aJpaEntityInformation
for the given domain class andEntityManager
.- Parameters:
domainClass
- must not be null.em
- must not be null.- Returns:
-
getEntityName
Description copied from interface:JpaEntityMetadata
Returns the name of the entity.- Specified by:
getEntityName
in interfaceJpaEntityMetadata<T>
- Returns:
-