Annotation Interface OptimisticLock
@Deprecated(since="8.0",
forRemoval=true)
@Target({METHOD,FIELD})
@Retention(RUNTIME)
public @interface OptimisticLock
Deprecated, for removal: This API element is subject to removal in a future version.
Specifies whether mutating the annotated attribute should trigger an increment
to the version of the entity instance.
Or, when
@OptimisticLocking(type = ALL) or
@OptimisticLocking(type = DIRTY) is used,
specifies whether the annotated 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 ElementDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.trueif changing the annotated attribute should not cause the version to be incremented.
-
Element Details
-
excluded
boolean excludedDeprecated, for removal: This API element is subject to removal in a future version.trueif changing the annotated attribute should not cause the version to be incremented.
-
ExcludedFromVersioning.