LazyInitializationException when accessing lazy association after Hibernate Session.close()
The goal is to return entity data from a public REST endpoint without accidentally initializing uninitialized Hibernate proxies or exposing associations outside the transaction that loaded them. Hibernate throws LazyInitializationException when a lazy association is accessed after its Session is closed. Setting hibernate.enable_lazy_load_no_trans permits loa