-
Notifications
You must be signed in to change notification settings - Fork 3.6k
HHH-19495 Remove the default "true" from optimistic-lock in the mapping xsd #10295
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
HHH-19495 Remove the default "true" from optimistic-lock in the mapping xsd #10295
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @marko-bekhta, thanks! I'm guessing that just by having the OptimisticLock
annotation we were triggering an additional version update statement, correct?
Have you also tried looking into the hasCascades
behavior that was mentioned in the issue?
It would be great to have a test in ORM for this. Would you be able to isolate one from the issuer's reproducer?
9aee5bb
to
6eb6f5c
Compare
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/xml/Consumer.java
Dismissed
Show resolved
Hide resolved
there's an extra commit in there, @dreab8 and I discovered that XML version was ignored in 7 so added something to handle it. |
hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/XmlAnnotationHelper.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/XmlAnnotationHelper.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java
Outdated
Show resolved
Hide resolved
so that no extra annotations are added unless explicitly defined.
43fbd13
to
bba1503
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
so that no extra annotations are added unless explicitly defined.
[Please describe here what your change is about]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-19528
https://hibernate.atlassian.net/browse/HHH-19495