Skip to content

Conversation

@scottmarlow
Copy link
Member

Address https://hibernate.atlassian.net/browse/HHH-19529 + https://issues.redhat.com/browse/WFLY-20572

Ensure that bytecode generated proxies are generated in the referenceClass class loader to ensure EE subdeployment (e.g. war) contained entity classes are used in preference to top level deployment (e.g. EAR/lib).

More specifically, if an application EAR contains the entity classes in the ear/lib and also has several WARs that also contain the same entity classes, the war copy of the entity classes should be used. There may also be some WARs that do not contain those entity classes so those WARs should use the entity classes contained in the EAR/lib.


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.


…aders to ensure EE subdeployment contained entity classes are used in preference to top level deployment (e.g. EAR/lib)

Signed-off-by: Scott Marlow <[email protected]>
@scottmarlow
Copy link
Member Author

The Jakarta EE 10 Platform TCK tests pass with this change.

@mbellade mbellade merged commit 4f9e5c1 into hibernate:6.6 Jun 11, 2025
31 of 32 checks passed
@scottmarlow scottmarlow deleted the HHH-19528_6.6 branch June 11, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants