I see two classes for locking in hibernate 1. LockOptions 2. LockMode
What is the difference between two? When to use each?
I see two classes for locking in hibernate 1. LockOptions 2. LockMode
What is the difference between two? When to use each?
I don't have a definite answer but for MySQL the only way to generate a for update
sql statement was:
query.setLockOptions(LockOptions.UPGRADE);