Skip to content

Commit

Permalink
add portability note
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Dec 16, 2023
1 parent 2898c4f commit dfbced2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/src/main/asciidoc/ch03-entity-operations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1955,6 +1955,10 @@ When an optimistic lock failure is detected, the persistence provider
must throw an `OptimisticLockException` and mark the current transaction
for rollback.

A persistence provider might offer alternative implementations of
optimistic locking, which do not depend on the entity having a version,
but such functionality is not portable between providers.

Applications are strongly encouraged to enable optimistic locking for
every entity which may be concurrently accessed or which may be merged
from a detached state. Failure to make use of optimistic locking often
Expand Down

0 comments on commit dfbced2

Please sign in to comment.