-
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
Fetch a lazy association after using getReference doesn't work with Hibernate Reactive #15839
Comments
/cc @Sanne, @gavinking |
@gavinking Am I missing something or this should work? |
I think you need to fetch the entity first. |
Do you mean like this?
|
yeah, like that, not like what I wrote :-) |
:-) Sadly, it still doesn't work and gives Session already closed. |
Does it work in a plain HR test? |
I will try to test this exact case, but we have several tests in |
well we probably do need to add a test with a detached object like the example I added to the docs. |
I think we already cover these cases in Hibernate reactive. |
I haven't verified it, but I suspect this issue is related to this one on Hibernate Reactive: hibernate/hibernate-reactive#975 |
It has been fixed by one of the latest Hibernate Reactive upgrades. Probaly by hibernate/hibernate-reactive#975
It has been fixed by one of the latest Hibernate Reactive upgrades. Probably by hibernate/hibernate-reactive#975
It has been fixed by one of the latest Hibernate Reactive upgrades. Probably by hibernate/hibernate-reactive#975
It has been fixed by one of the latest Hibernate Reactive upgrades. Probably by hibernate/hibernate-reactive#975 (cherry picked from commit 3ee180a)
It's possible to reproduce it adding the following method to
HibernateReactiveTestEndpointFetchLazy
:and the test in
HibernateReactiveFetchLazyTest
See my branch: https://github.com/DavideD/quarkus/tree/getreference
This will cause a Session is closed exception. Adding transaction won't cause any exception but it will return 0 results.
The text was updated successfully, but these errors were encountered: