Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for OPTIMISTIC + OPTIMISTIC_FORCE_INCREMENT LockModes #329

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

gavinking
Copy link
Member

@gavinking gavinking commented Aug 23, 2020

These LockModes force a version check or upgrade right at the end of the transaction.

This required building infrastructure for reactive before/after transaction completion events.

Fixes #201

Still TODO: support passing OPTIMISTIC, OPTIMISTIC_FORCE_INCREMENT to session.lock()

@gavinking gavinking added this to the FIRST CUT milestone Aug 23, 2020
@gavinking gavinking mentioned this pull request Aug 23, 2020
These LockModes force a version check or upgrade right at the
end of the transaction.

This required building infrastructure for reactive before/after
transaction completion events.

Fixes hibernate#201
Also big cleanup to related code, and a couple of minor bugfixes to
implementation of lock() operation. Also tests.

For hibernate#329
@gavinking gavinking merged commit 99e5bb7 into hibernate:master Aug 24, 2020
gavinking added a commit that referenced this pull request Aug 24, 2020
@gavinking gavinking deleted the optimistic branch June 15, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

optimistic LockModes
1 participant