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]>
@mbellade mbellade merged commit 10f4e24 into hibernate:main Jun 11, 2025
25 checks passed
@scottmarlow scottmarlow deleted the HHH-19528_main branch June 11, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants