Using spring with JPA + JTA and Hibernate 5.2.9.Final + Envers
This issue is related to HHH-11570 Closed
When deleting an entity that has a one-to-many relationship to another one (without cascade delete), EnversPreCollectionRemoveEventListener might fail since entity manager is already closed.
Test case is attached: MyApp.zip
Main class: com.myapp.App