SingularAttribute<?superX,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
- Return:
- version attribute
- Throws:
- IllegalArgumentException - if version attribute of the given type is not present in the identifiable type
- Since:
- JPA 2.0