JPA Method
in javax.persistence.metamodel.IdentifiableType

SingularAttribute<X,Y> getDeclaredId(
  Class<Y> type
)


Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass.
Parameters:
type - the type of the represented declared id attribute
Return:
declared id attribute
Throws:
IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or if the identifiable type has an id class
Since:
JPA 2.0