Quantcast
Channel: Transactions Archives - Vlad Mihalcea
Viewing all articles
Browse latest Browse all 19

Hibernate Locking Patterns – How do PESSIMISTIC_READ and PESSIMISTIC_WRITE work

$
0
0
Introduction Java Persistence API comes with a thorough concurrency control mechanism, supporting both implicit and explicit locking. The implicit locking mechanism is straightforward and it relies on: Optimistic locking: Entity state changes can trigger a version incrementation Row-level locking: Based on the current running transaction isolation level, the INSERT/UPDATE/DELETE statements may acquire exclusive row locks … Continue reading Hibernate Locking Patterns – How do PESSIMISTIC_READ and PESSIMISTIC_WRITE work

Viewing all articles
Browse latest Browse all 19

Trending Articles