Package org.hibernate.annotations
Annotation Type OptimisticLock
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface OptimisticLock
Specifies whether mutating the annotated attribute should trigger an increment to theversionof the entity instance. Or, ifOptimisticLockType.ALLorOptimisticLockType.DIRTYare 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 Elements Modifier and Type Required Element Description booleanexcludedtrueif changing the annotated attribute should not cause the version to be incremented.
-