-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-18723 Support @SQLRestriction in class marked as @MappedSuperclass #9744
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
Conversation
hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/orm/test/where/annotations/MappedSuperclassTest.java
Outdated
Show resolved
Hide resolved
gavinking
left a comment
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.
To fix the test failures you'll need to make a change in EntityBinder around line 1354, in order to distinguish the case of a @MappedSuperclass.
|
I fixed calculation. Now it only inherit annotation from |
...e-core/src/test/java/org/hibernate/orm/test/customsql/CustomSqlRestrictionOverridesTest.java
Show resolved
Hide resolved
|
Just to be clear. I finished all my changes and expecting input from your side. |
64bf28b to
76d4c85
Compare
sebersole
left a comment
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
76d4c85 to
e4f5edb
Compare
e4f5edb to
955ae4f
Compare
I have several entities with common super class SoftDeleteSupport marked with @MappedSuperclass annotation. It have boolean rmv; field.
Currently I have to put @SQLRestriction in each entity.
I propose to support @SQLRestriction on classes marked with @MappedSuperclass t reduce code duplication.
This PR is intends to fix HHH-18723
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.