Package org.hibernate.annotations
Annotation Interface OptimisticLock
Specifies whether mutating the annotated attribute should trigger an increment
to the
version
of the entity instance. Or,
if OptimisticLockType.ALL
or OptimisticLockType.DIRTY
are used,
specifies whether the attribute should be included or excluded from the list of
checked attributes.
If this annotation is not present, mutating an attribute does cause the version to be incremented.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionboolean
true
if changing the annotated attribute should not cause the version to be incremented.
-
Element Details
-
excluded
boolean excludedtrue
if changing the annotated attribute should not cause the version to be incremented.
-