LazyInitializationException in ToOneIdMapper when attempting to initialize Hibernate proxy.

Description

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.

Attachments

2
  • 06 Apr 2020, 01:42 PM
  • 06 Apr 2020, 01:24 PM

Activity

Show:

Details

Assignee

Reporter

Worked in

Affects versions

Priority

Created April 6, 2020 at 1:21 PM
Updated April 6, 2020 at 1:42 PM