Jakarta Persistence (JPA) Method

SingularAttribute<? super X,Y> getVersion(
  Class<Y> type
)


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:
Jakarta Persistence (JPA) 1.0