I tested on 5.2.5 as this is the newest one popping up at https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager right now. However, I realized 5.2.6 is available and the problem does not occur in that version – probably
HHH-11337 Closed is the cure. Please, however, backporting the fix to 4.2.x line. |