Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Jan 3, 2025

Jira issue HHH-18933

Method org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl#orderAndFillHierarchy has not been properly ordering classes.

Fixing problem by adding method org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl#orderHierarchy and ordering classes before returning from orderAndFillHierarchy. 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.


@cigaly
Copy link
Contributor Author

cigaly commented Jan 15, 2025

Added additional test using classes from article Hibernate ORM 6.6 - Embeddable Inheritance

@mbellade
Copy link
Member

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 main?

@cigaly
Copy link
Contributor Author

cigaly commented Jan 28, 2025

OK, I'll do it

@mbellade
Copy link
Member

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.

@cigaly
Copy link
Contributor Author

cigaly commented Jan 28, 2025

Sorry, I've forgot that 6.6 should be compiled with JDK 11, and 7.0 with JDK 17. I'll fix that now

@cigaly
Copy link
Contributor Author

cigaly commented Jan 28, 2025

There are still thousands of checkstyle violation, but none in those two test classes

@mbellade mbellade merged commit c97cf47 into hibernate:6.6 Jan 29, 2025
21 of 25 checks passed
@mbellade mbellade mentioned this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants