Class JpaPersistableEntityInformation<T extends Persistable<ID>,ID>
java.lang.Object
org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport<T,ID>
org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation<T,ID>
org.springframework.data.jpa.repository.support.JpaPersistableEntityInformation<T,ID>
- All Implemented Interfaces:
JpaEntityMetadata<T>
,JpaEntityInformation<T,
,ID> EntityInformation<T,
,ID> EntityMetadata<T>
public class JpaPersistableEntityInformation<T extends Persistable<ID>,ID>
extends JpaMetamodelEntityInformation<T,ID>
Extension of
JpaMetamodelEntityInformation
that consideres methods of Persistable
to lookup the id.- Author:
- Oliver Gierke, Christoph Strobl, Mark Paluch
-
Constructor Summary
ConstructorDescriptionJpaPersistableEntityInformation
(Class<T> domainClass, jakarta.persistence.metamodel.Metamodel metamodel, jakarta.persistence.PersistenceUnitUtil persistenceUnitUtil) Creates a newJpaPersistableEntityInformation
for the given domain class andMetamodel
. -
Method Summary
Methods inherited from class org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation
getCompositeIdAttributeValue, getEntityName, getIdAttribute, getIdAttributeNames, getIdType, getKeyset, hasCompositeId
Methods inherited from class org.springframework.data.jpa.repository.support.JpaEntityInformationSupport
getEntityInformation
Methods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaType
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
getRequiredId
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
Methods inherited from interface org.springframework.data.jpa.repository.support.JpaEntityInformation
getRequiredIdAttribute
-
Constructor Details
-
JpaPersistableEntityInformation
public JpaPersistableEntityInformation(Class<T> domainClass, jakarta.persistence.metamodel.Metamodel metamodel, jakarta.persistence.PersistenceUnitUtil persistenceUnitUtil) Creates a newJpaPersistableEntityInformation
for the given domain class andMetamodel
.- Parameters:
domainClass
- must not be null.metamodel
- must not be null.persistenceUnitUtil
- must not be null.
-
-
Method Details
-
isNew
- Specified by:
isNew
in interfaceEntityInformation<T extends Persistable<ID>,
ID> - Overrides:
isNew
in classJpaMetamodelEntityInformation<T extends Persistable<ID>,
ID>
-
getId
- Specified by:
getId
in interfaceEntityInformation<T extends Persistable<ID>,
ID> - Overrides:
getId
in classJpaMetamodelEntityInformation<T extends Persistable<ID>,
ID>
-