Skip to content
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

HBX-2840 Prevent Hibernate ORM from trying to load component classes #4984

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marko-bekhta
Copy link
Member

https://hibernate.atlassian.net/browse/HBX-2840
https://hibernate.atlassian.net/browse/HHH-18228

There were some changes in ORM that now are trying to load the component class to (e.g. to determine if it is a record or not) and since when the org.hibernate.mapping.* model is built in Tools there are no classes yet ... we probably don't want ORM trying to load anything 🙈. My thinking here is... we probably don't really care about the component class so let's prevent ORM from loading things through classloaders by name, and just return a simple Object.class so those ORM checks will pass through...

Let me know what you think about such an approach 😃.

@marko-bekhta marko-bekhta requested a review from koentsje February 7, 2025 15:15
Copy link
Member

@koentsje koentsje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff, I'll merge it today. Thanks a lot Marko!

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