Fast Object Database for Java - with JPA/JDO support

getVersion(type) - JPA IdentifiableType's method

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