-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-18933 the ordering of the class declaration in persistence.xml seems to affect the metamodel #9548
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
|
Added additional test using classes from article Hibernate ORM 6.6 - Embeddable Inheritance |
hibernate-core/src/test/java/org/hibernate/orm/test/org/hierarchyorder/HierarchyOrderTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/hibernate/orm/test/embeddableinheritance/EmbeddableInheritanceTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/hibernate/orm/test/embeddableinheritance/EmbeddableInheritanceTest.java
Outdated
Show resolved
Hide resolved
...re/src/test/java/org/hibernate/orm/test/embeddableinheritance/EmbeddableInheritanceTest.java
Outdated
Show resolved
Hide resolved
hibernate-core/src/test/java/org/hibernate/orm/test/org/hierarchyorder/HierarchyOrderTest.java
Outdated
Show resolved
Hide resolved
|
Thanks @cigaly, looks great now! One last thing, could you please open a PR with just the tests to confirm this is already fixed in |
|
OK, I'll do it |
|
Test compilation is failing, please fix that. Also would be great if you could apply Hibernate's code style to the test classes as well as the main code. |
|
Sorry, I've forgot that 6.6 should be compiled with JDK 11, and 7.0 with JDK 17. I'll fix that now |
…d in equivalent way as in main (7.0) branch
|
There are still thousands of checkstyle violation, but none in those two test classes |
Jira issue HHH-18933
Method
org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl#orderAndFillHierarchyhas not been properly ordering classes.Fixing problem by adding method
org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl#orderHierarchyand ordering classes before returning fromorderAndFillHierarchy. Added method is equivalent to one that is (properly) ordering classes in main branch.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.