Annotation Type OptimisticLocking
The OptimisticLocking annotation is used to specify the type of optimistic
locking TopLink should use when updating or deleting entities.
An optimistic-locking specification is supported on an Entity or
MappedSuperclass annotation.
- See Also:
- Author:
- Guy Pelletier
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
(Optional) Specify where the optimistic locking policy should cascade lock.jakarta.persistence.Column[]
(Optional) For an optimistic locking policy of type SELECTED_COLUMNS, this annotation member becomes a (Required) field.(Optional) The type of optimistic locking policy to use.
-
Element Details
-
type
(Optional) The type of optimistic locking policy to use.- Default:
- VERSION_COLUMN
-
selectedColumns
jakarta.persistence.Column[] selectedColumns(Optional) For an optimistic locking policy of type SELECTED_COLUMNS, this annotation member becomes a (Required) field.- Default:
- {}
-
cascade
boolean cascade(Optional) Specify where the optimistic locking policy should cascade lock. Currently only supported with VERSION_COLUMN locking.- Default:
- false
-