JPA Method
in javax.persistence.metamodel.IdentifiableType

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


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