-
Notifications
You must be signed in to change notification settings - Fork 92
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
optimistic LockModes #201
Comments
Folks, please note that this issue isn’t saying that we don’t support optimistic locking! It’s a very specific issue with passing certain lock modes explicitly to the |
So fixing this issue requires adding reactive implementations of(at least):
This doesn't look so bad. |
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
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
This is done for (It's also not done for |
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
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
Done, finally! |
Notes: * Fix hibernate#201: ReactiveIdentifierGenerator must extends Generator * The Hibernate Gradle plugin has not been released yet, so we keep it to 7.0.0.Beta2 * XML sql data type is not supported: eclipse-vertx/vertx-sql-client#1475 * Stop using `org.hibernate.dialect.DialectDelegateWrapper` (not required anymore) * Remove `ReactiveOracleSqlAstTranslator` (not required anymore) * Only process parameters for native queries. See hibernate#2012 * Remove `ReactiveIdentifierGeneratorFactory`: the service doesn't exist anymore in ORM * Add `persist(String, Object)` to the session * Remove test for `hibernate.create_empty_composites.enabled`: see [HHH-18222](https://hibernate.atlassian.net/browse/HHH-18222) * Contains some clean ups * There are still some issues with embeddable mapped as JSON and native queries: See hibernate#1999
The
LockMode
typesOPTIMISTIC
andOPTIMISTIC_FORCE_INCREMENT
passed tolock()
are used to explicitly request a version check or version increment during the before completion phase of the transaction (not at flush time, if I understand correctly).Since we don't really even have a well-defined transaction completion phase at this stage, I'm not going to add them now.
Also I doubt these are very widely-used.
The text was updated successfully, but these errors were encountered: