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 considers 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 JpaMetamodelEntityInformation
getCompositeIdAttributeValue, getEntityName, getIdAttribute, getIdAttributeNames, getIdType, getKeyset, hasCompositeIdMethods inherited from class JpaEntityInformationSupport
getEntityInformation, getEntityInformationMethods inherited from class AbstractEntityInformation
getJavaTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInformation
getRequiredIdMethods inherited from interface EntityMetadata
getJavaTypeMethods inherited from interface 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>
-