-
Notifications
You must be signed in to change notification settings - Fork 43
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
Check if @ManyToOne and @OneToOne associations are unproxied when using bytecode enhancement lazy loading #126
Comments
Note that |
Good news from Hibernate: There is one left, but it should also be fixed: Looking forward to using bytecode enhancement with lazy initialization without troubles! |
Hi @vladmihalcea, |
Thanks for the tip. I'll have to test it with the latest 5.5 branch and see what's the best fix for it. |
@pblanchardie I created #160 and I'll leave this issue open to see whether for 5.3 and 5.4 we need to provide the user with the hint about |
@pblanchardie Check out the 2.5.1 release, as it fixes the |
As explained by @pblanchardie in this Jira issue. when using bytecode enhancement lazy loading, all
@ManyToOne
and@OneToOne
associations should be unproxied in the following ways:hibernate.bytecode.allow_enhancement
@LazyToOne(LazyToOneOption.NO_PROXY)
Otherwise, the associations are fetched eagerly by some recent Hibernate issues.
The text was updated successfully, but these errors were encountered: