public class JpaPersistableEntityInformation<T extends Persistable<ID>,ID> extends JpaMetamodelEntityInformation<T,ID>
JpaMetamodelEntityInformation that consideres methods of Persistable to lookup the id.| Constructor and Description |
|---|
JpaPersistableEntityInformation(Class<T> domainClass,
javax.persistence.metamodel.Metamodel metamodel)
Creates a new
JpaPersistableEntityInformation for the given domain class and Metamodel. |
| Modifier and Type | Method and Description |
|---|---|
ID |
getId(T entity) |
boolean |
isNew(T entity) |
getCompositeIdAttributeValue, getEntityName, getIdAttribute, getIdAttributeNames, getIdType, hasCompositeIdgetEntityInformationgetJavaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredIdAttributegetRequiredIdgetJavaTypepublic JpaPersistableEntityInformation(Class<T> domainClass, javax.persistence.metamodel.Metamodel metamodel)
JpaPersistableEntityInformation for the given domain class and Metamodel.domainClass - must not be null.metamodel - must not be null.public boolean isNew(T entity)
isNew in interface EntityInformation<T extends Persistable<ID>,ID>isNew in class JpaMetamodelEntityInformation<T extends Persistable<ID>,ID>@Nullable public ID getId(T entity)
getId in interface EntityInformation<T extends Persistable<ID>,ID>getId in class JpaMetamodelEntityInformation<T extends Persistable<ID>,ID>Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.