Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version: 3.0.5
I have a hibernate pojo that contains a collection which is lazily loaded.
My usecase: I want to log the contents of this Pojo.
My Problem: In my logging routine if I access the collection property this will automatically initialize it (hit the DB --> performance impact just for logging). What I want to do is to modify my logging logic to identify if the collection was initialized or not. If not initialized, I just want to print: "Not yet Initialized" otherwise I will print the content of the collection