Fast Object Database for Java - with JPA/JDO support

getDeclaredVersion(type) - JPA IdentifiableType's method

Method
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
Returns:
declared version attribute
Throws:
IllegalArgumentException - if version attribute of the type is not declared in the identifiable type
Since:
JPA 2.0