24.2.62. @OptimisticLocking

The @OptimisticLocking annotation is used to specify the current annotated an entity optimistic locking strategy.

</div>

The four possible strategies are defined by the OptimisticLockType enumeration:

</div>

NONE

The implicit optimistic locking mechanism is disabled.

</dd>

VERSION

The implicit optimistic locking mechanism is using a dedicated version column.

</dd>

ALL

The implicit optimistic locking mechanism is using all attributes as part of an expanded WHERE clause restriction for the UPDATE and DELETE SQL statements.

</dd>

DIRTY

The implicit optimistic locking mechanism is using the dirty attributes (the attributes that were modified) as part of an expanded WHERE clause restriction for the UPDATE and DELETE SQL statements.

</dd> </dl> </div>

See the Versionless optimistic locking section for more info.

</div> </div>

results matching ""

    No results matching ""