Sequence of flush(); clear(); commit(); can lead to LazyInitializationException

Description

I have a discriminator that throws a lazyloading exception in some cases:

I'm trying to isolate the condition, but I wanted to note this here.

Environment

None

Assignee

Fabio Massimo Ercoli

Reporter

Marc Schipperheyn

Labels

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure