@Version
Mapping for a property that provides optimistic locking. The version property can either be
a number type like long or a timestamp type like Instant.
Recommendation
The recommendation is to map @Version to a property of type long and
then additionally map a property using @WhenModified.
@Version
long version;
@WhenModified
Instant whenModified;