Spring Data Jpa

org.springframework.data.jpa.repository.support
Interface JpaEntityInformation<T,ID extends Serializable>

All Superinterfaces:
EntityInformation<T,ID>, EntityMetadata<T>
All Known Implementing Classes:
JpaEntityInformationSupport, JpaMetamodelEntityInformation, JpaPersistableEntityInformation

public interface JpaEntityInformation<T,ID extends Serializable>
extends EntityInformation<T,ID>

Extension of EntityInformation to capture aditional JPA specific information about entities.

Author:
Oliver Gierke

Method Summary
 String getEntityName()
          Returns the JPA entity name.
 javax.persistence.metamodel.SingularAttribute<? super T,?> getIdAttribute()
          Returns the id attribute of the entity.
 
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, isNew
 
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
 

Method Detail

getIdAttribute

javax.persistence.metamodel.SingularAttribute<? super T,?> getIdAttribute()
Returns the id attribute of the entity.

Returns:

getEntityName

String getEntityName()
Returns the JPA entity name.

Returns:

Spring Data Jpa

Copyright © 2011-2012-2012 SpringSource. All Rights Reserved.