Janko Petrovic (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZThkZDhmOWYy...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13933?atlOrigin=eyJpIjoiZThkZD...
) HHH-13933 (
https://hibernate.atlassian.net/browse/HHH-13933?atlOrigin=eyJpIjoiZThkZD...
) LazyInitializationException in ToOneIdMapper when attempting to initialize Hibernate
proxy. (
https://hibernate.atlassian.net/browse/HHH-13933?atlOrigin=eyJpIjoiZThkZD...
)
Change By: Janko Petrovic (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
[^HHH-13933-test-case (da2214f9-fc5e-47e5-b8aa-b212f60e22b8).zip]
In ToOneIdMapper.mapToMapFromEntity() Hibernate proxy initialization is attempted using
session which was originally used for loading that entity. However, by that time, that
session could be closed (and reference to it could be removed from lazy initializer
instance). Attached test case demonstrates such a scenario.
(
https://hibernate.atlassian.net/browse/HHH-13933#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13933#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#100124- sha1:c7667cc )