advancedTransactions & Concurrency
What is optimistic locking in JPA? How do you implement it with @Version?
Tests whether you know how version-column-based conflict detection avoids holding a database lock for the whole transaction.
This is a Pro question
Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.
What is optimistic locking in JPA? How do you implement it with @Version?