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
ConstructorsConstructorDescriptionJpaPersistableEntityInformation(Class<T> domainClass, jakarta.persistence.metamodel.Metamodel metamodel, jakarta.persistence.PersistenceUnitUtil persistenceUnitUtil) Creates a newJpaPersistableEntityInformationfor the given domain class andMetamodel. -
Method Summary
Methods inherited from class org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation
getCompositeIdAttributeValue, getEntityName, getIdAttribute, getIdAttributeNames, getIdType, hasCompositeIdMethods inherited from class org.springframework.data.jpa.repository.support.JpaEntityInformationSupport
getEntityInformationMethods inherited from class org.springframework.data.repository.core.support.AbstractEntityInformation
getJavaTypeMethods 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
getRequiredIdMethods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaTypeMethods 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 newJpaPersistableEntityInformationfor 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:
isNewin interfaceEntityInformation<T extends Persistable<ID>,ID> - Overrides:
isNewin classJpaMetamodelEntityInformation<T extends Persistable<ID>,ID>
-
getId
- Specified by:
getIdin interfaceEntityInformation<T extends Persistable<ID>,ID> - Overrides:
getIdin classJpaMetamodelEntityInformation<T extends Persistable<ID>,ID>
-