Guillaume Toison (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMWI4ZTM3ZGQ3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMWI4ZT...
) HHH-16743 (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMWI4ZT...
) StackOverflowError when loading a ManyToOne whith @Proxy(lazy=false) (
https://hibernate.atlassian.net/browse/HHH-16743?atlOrigin=eyJpIjoiMWI4ZT...
)
Change By: Guillaume Toison (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
This is the same issue as
[
https://hibernate.atlassian.net/browse/HHH-16553|https://hibernate.atlass...
with a better understading of the problem.
I incorrectly assumed that the stackoverflow happened because the graph of entities was
too deep, but the actual problem is that Hibernate tries to load the same entity over and
over again.
This also seems to happen only when the entity is cacheable (and the correspoding entry
must be absent from the cache so a query is necessary).
Maybe the issue is that {{BatchInitializeEntitySelectFetchInitializer}} does not handle
the case when the entity is annotated with {{@Proxy( lazy=false )}}
Pull request with a test case reproducing the issue:
[
https://github.com/hibernate/hibernate-orm/pull/6716|https://github.com/h...]
(
https://hibernate.atlassian.net/browse/HHH-16743#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16743#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:e03cc87 )