-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Upgrade to Hibernate ORM 6.5 / Hibernate Reactive 2.3 #40102
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
This message is automatically generated by a bot. |
/cc @gsmet (hibernate-orm) |
...rm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/StatelessSessionLazyDelegator.java
Outdated
Show resolved
Hide resolved
Marking as ready for review to get a full CI run. Please don't merge just yet. |
This comment has been minimized.
This comment has been minimized.
@@ -394,6 +396,30 @@ public Object get(String entityName, Object id, LockMode lockMode) { | |||
} | |||
} | |||
|
|||
@Override | |||
public Filter enableFilter(String filterName) { |
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.
No rush, but it might be worth adding a base class in ORM for these use cases.
I always considered the "Session API" would be rock stable and not worth the hassle, but in practice it seems there's some adjustment needed quite often..
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.
See https://hibernate.atlassian.net/browse/HHH-17990. Please have a look at the comments too, as it's not as straightforward as one might think, given what Quarkus does in such "proxy" classes.
BTW if only we had support for generating proxies at extension build time, we could solve this much more easily on the Quarkus side... Provided we have some metadata regarding which method implies data mutation or DB access.
This comment has been minimized.
This comment has been minimized.
CI doesn't get executed and I don't understand why. I've removed EDIT: Please don't merge yet though! |
This comment has been minimized.
This comment has been minimized.
Related upstream fixes so far: hibernate/hibernate-orm@1166e64 |
5173173
to
3c33195
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Another image metrics change:
I just checked on main: the number before even upgrading to Hibernate ORM 6.5 is So Hibernate ORM 6.5 only accounts for 28 new types registered for reflection. Not great, but certainly not a reason to fail the build. For now I'll just bump the numbers to whatever native image generation reports before the upgrade. |
This comment has been minimized.
This comment has been minimized.
@yrodiere please note that previous Hibernate ORM updates have also increased the elements registered for reflection (and this the binary size), see:
It looks like there is a trend with newer versions bringing in more and more things. |
Yes, new versions come with new features. |
Sure, but in theory we don't use all these new features (e.g. the integration tests didn't change) so ideally Quarkus should be able to contain their impact on the resulting native executables. |
Yes, ideally. I'll add this to the stack of items to work on... no promises :/ |
This comment has been minimized.
This comment has been minimized.
9e1d53b
to
c44e9e1
Compare
Let's see whether CI is happy... |
Status for workflow
|
Draft because we only have CRs of these libraries for now, no Final version.
This should fix the following upstream issues:
Fixes #38722
Fixes #37735
Fixes #2815
We'll need to have a look at #37575 once we have some time; it's possible the new, official property for disabling JDBC metadata retrieval works a bit better (but I'm not sure). Related: #30002 , #13522.