HHH000506: Detaching an uninitialized collection with enabled filters from a session

I don’t know anything about Spring logging, so you should better ask that question in a Spring forum.

If you want to avoid lazy loading problems you have roughly 2 possibly options though:

  • Keep the session open longer until lazy loading is done (this is about the “open session-in-view” Spring setting I mentioned)
  • Fetch data into DTOs to get rid of lazy loading after a session ends

If you’re curious about the DTO approach, I can recommend you to look into Blaze-Persistence Entity-Views, which I developed to tackle such lazy loading problems.