From time to time I need to clean Hibernate session.
How to prevent LazyInitializationException with obects that are attached to this session?
I am searching for something like session.detachAllObjects(). and then invoke session.clear()
After this I suppose these objects will be retrieved from DB.