Guillaume Toison (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *commented* on HHH-16553 (
https://hibernate.atlassian.net/browse/HHH-16553?atlOrigin=eyJpIjoiY2Q5YT...
)
Re: StackOverflowError when loading entities chained together (
https://hibernate.atlassian.net/browse/HHH-16553?atlOrigin=eyJpIjoiY2Q5YT...
)
Hello Andrea
As you said the fetch type (not fetch mode, I misunderstood) should be lazy and not
eager.
I have modified the test case and it fails with @Proxy(lazy=false) while it works without
@Proxy(lazy=false). I have the same behaviour with my real code base: a stackoverflow with
@Proxy(lazy=false) and no error without it.
To be honest I’m not sure how it could have worked with Hibernate 5, I guess that at some
point it was using some proxies
(
https://hibernate.atlassian.net/browse/HHH-16553#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16553#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:11e4e77 )