Skip to content

Add initial set of hibernate 7.0 metadata #579

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

christophstrobl
Copy link
Contributor

@christophstrobl christophstrobl commented Dec 5, 2024

What does this PR do?

Hibernate 7 is finally out and this PR contains some metadata that allows to bootstrap hibernate.

Code sections where the PR accesses files, network, docker or some external service

  • n/a

Checklist before merging

Hibernate 7 is still in beta, still if there's a need to early test integration this is a least some metadata that allows to bootstrap hibernate.
@christophstrobl christophstrobl changed the title Add initial set of hibernate 7.0 metadata (still old format) Add initial set of hibernate 7.0 metadata Jun 2, 2025
@christophstrobl christophstrobl marked this pull request as ready for review June 3, 2025 12:53
@christophstrobl christophstrobl requested a review from a team as a code owner June 3, 2025 12:53
@christophstrobl christophstrobl requested a review from dnestoro June 3, 2025 12:53
Make sure hibernate 6.6.x versions are routed to the 6.6 metadata.
Copy link
Collaborator

@sdeleuze sdeleuze left a comment

Choose a reason for hiding this comment

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

Looks good, works fine with Spring Petclinic.

@sdeleuze
Copy link
Collaborator

@dnestoro Could you please review, squash and merge this PR?

} catch (Exception e) {
Throwable rootCause = getRootCause(e);
if (rootCause instanceof UnsupportedOperationException || rootCause instanceof NullPointerException) {
// this is fine - trust me I'm an engineer!
Copy link
Member

@olpaw olpaw Jun 30, 2025

Choose a reason for hiding this comment

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

Please replace this comment with the actual reason why we are suppressing UnsupportedOperationException and NullPointerException here.

It must possible to write a more useful comment than:

this is fine - trust me I'm an engineer!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test that tries to emulate what hibernate does at runtime in certain areas so that we can extract the metadata. We need to essentially capture the method call and it's not always possible, at least with a reasonable amount of work, to build the test in a way so that hibernate internals would not bark at the provided input parameters in some cases.

Sure I can put this in as the comment as well, or just remove it. Whatever you prefer.

Copy link
Member

@olpaw olpaw Jun 30, 2025

Choose a reason for hiding this comment

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

Sure I can put this in as the comment as well

Yes, that would be much appreciated.

@@ -0,0 +1,24 @@
[
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have generated-metadata pushed here?

If I understand correctly, you generated metadata, cleaned it, and then copy it to the metadata/org.hibertane.orm/.... Why do we need this generated metadata here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch - thanks yeah those files can be removed 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hum, missed that sorry, can you update the PR @christophstrobl, and I will then do a new round of tests?

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.

4 participants