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 |
|---|---|
ID |
getId(T entity) |
javax.persistence.metamodel.SingularAttribute<? super T,?> |
getIdAttribute()
Returns the id attribute of the entity.
|
Class<ID> |
getIdType() |
getEntityName, getMetadatagetJavaType, isNewpublic 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 .Copyright © 2011-2012-2012 SpringSource. All Rights Reserved.