Fix problem with Hibernate Lazy Loading-exception
Registered by
Olav P
Fix problem with Hibernate Lazy Loading-exception.
Blueprint information
Whiteboard
Why it appears, When you map a one-to-many relation ship, the default load mode is lazy loading, and this is the best choice thing because Hibernate will not gonna load a collection of objects in memory until you use them.
So, If you try to access this collection within the same session you get the parent object, it will works fine.
So the problem happens when you try to access a collection of some object outside the initiating session.
Fixed, but the implementation is now slow.
(?)