A NullPointerException is thrown during delete when using an entity with lazy collections and tomcat-embed-el:10.1.8 on the classpath. The issue only occurs when a fresh entitymanager instance is used to delete the entity. For a more detailled analysis please have a look at the discussion here: https://github.com/spring-projects/spring-boot/issues/35617 A sample application showcasing the bug can be found here: https://github.com/wilkinsona/spring-hibernate-bug-demo/tree/pure-jpa
|