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.
Since:
Oracle TopLink 11.1.1.0.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    (Optional) Specify where the optimistic locking policy should cascade lock.
    (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

      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