-
Notifications
You must be signed in to change notification settings - Fork 109
Add Hibernate 7 module #185
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
Conversation
@@ -249,6 +249,7 @@ private String getIdentifierPropertyName(final LazyInitializer init) { | |||
if (_mapping != null) { | |||
idName = _mapping.getIdentifierPropertyName(init.getEntityName()); | |||
} else { | |||
// no unit tests rely on this next call and Hibernate 7 does not support it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change related to Hibernate 7 addition? If not (and I suspect it isn't), could we have separate PR to merge this change in first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separated this to #186
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged, updated this PR.
@pjfanning Looks good overall (although TBH can't really review much of Hibernate 7 module itself). I merged small parts of But one thing, as per my comment: looks like there are unrelated Hibernate 6 changes (fixes I presume): if so, would it make sense to merge them in via separate PR, before main change of adding Hibernate 7 module? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM: ideally would separate H6 changes to separate PR but that's just tactical change.
{ | ||
protected BaseTest() { | ||
try { | ||
System.out.println(Hibernate7Version.isHibernate7_Plus()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, missed this one: should probably be removed, or (if useful) add bit more context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- removed the println but kept the log stmt
- this code is mainly a copy/paste of the hibernate6 module with some changes to account for API changes
- the BaseTest is basically unmodified
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Did not realize -- will remove println's from other modules' BaseTest
s too.
Implements #184 adding
jackson-datatype-hibernate7
module.