Annotation Type OptimisticLocking
-
@Target(TYPE) @Retention(RUNTIME) public @interface 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:
OptimisticLockingType
- Author:
- Guy Pelletier
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
cascade
(Optional) Specify where the optimistic locking policy should cascade lock.Column[]
selectedColumns
(Optional) For an optimistic locking policy of type SELECTED_COLUMNS, this annotation member becomes a (Required) field.OptimisticLockingType
type
(Optional) The type of optimistic locking policy to use.
-
-
-
Element Detail
-
type
OptimisticLockingType type
(Optional) The type of optimistic locking policy to use.- Default:
- org.eclipse.persistence.annotations.OptimisticLockingType.VERSION_COLUMN
-
-
-
selectedColumns
Column[] selectedColumns
(Optional) For an optimistic locking policy of type SELECTED_COLUMNS, this annotation member becomes a (Required) field.- Default:
- {}
-
-