Fixed
Details
Assignee
Christian BeikovChristian BeikovReporter
Vlad MihalceaVlad MihalceaComponents
Fix versions
Priority
Minor
Details
Details
Assignee
Christian Beikov
Christian BeikovReporter
Vlad Mihalcea
Vlad MihalceaComponents
Fix versions
Priority
Created December 3, 2018 at 1:08 PM
Updated March 31, 2022 at 5:22 PM
Resolved March 25, 2022 at 7:55 PM
As explained in this forum thread, PostgreSQL provides the `NO KEYS` directive for pessimistic locking which allows child records that reference a parent row which was locked to be inserted.
To address this requirement, we have two options:
We could add a Hibernate configuration property which will allow Hibernate to use `KEY/NO KEY` when doing a
PESSIMISTIC_READ
orPESSIMISTIC_WRITE
.We could add a new
LockOptions.NO_KEY
for this purpose.Using a Query Hint.