Jakarta Persistence (JPA) Method
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:
- if version attribute of the type is not declared in the identifiable type.IllegalArgumentException
- Since:
- Jakarta Persistence (JPA) 1.0