I am working on a Spring boot project with Hibernate 5.0. Unfortunately, Hibernate reads lazy initialized objects without throwing a LazyInitializationException even after a transaction is committed. How to enable LazyInitializationException outside of transactions?
(The current behavior hides errors in the code.)
source share