public class JpaMetamodelEntityInformation<T,ID extends Serializable> extends JpaEntityInformationSupport<T,ID>
EntityInformation that uses JPA Metamodel
to find the domain class' id field.| Constructor and Description |
|---|
JpaMetamodelEntityInformation(Class<T> domainClass,
javax.persistence.metamodel.Metamodel metamodel)
Creates a new
JpaMetamodelEntityInformation for the given domain class and Metamodel. |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCompositeIdAttributeValue(Serializable id,
String idAttribute)
Extracts the value for the given id attribute from a composite id
|
ID |
getId(T entity) |
javax.persistence.metamodel.SingularAttribute<? super T,?> |
getIdAttribute()
Returns the id attribute of the entity.
|
Iterable<String> |
getIdAttributeNames()
Returns the attribute names of the id attributes.
|
Class<ID> |
getIdType() |
boolean |
hasCompositeId()
Returns true if the entity has a composite id
|
getEntityName, getMetadatagetJavaType, isNewclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNewgetJavaTypepublic JpaMetamodelEntityInformation(Class<T> domainClass, javax.persistence.metamodel.Metamodel metamodel)
JpaMetamodelEntityInformation for the given domain class and Metamodel.domainClass - must not be null.metamodel - must not be null.public javax.persistence.metamodel.SingularAttribute<? super T,?> getIdAttribute()
JpaEntityInformationpublic boolean hasCompositeId()
JpaEntityInformationpublic Iterable<String> getIdAttributeNames()
JpaEntityInformationpublic Object getCompositeIdAttributeValue(Serializable id, String idAttribute)
JpaEntityInformationCopyright © 2011-2013-2013 SpringSource. All Rights Reserved.