When I changed from 3 Alpha to 3 Beta all my code broke because of lLazyInitializationExceptions. I don't use lazy loading (on intention). I do have the same problem as discussed in the thread "Hibernate LazyInitializationException". I load an object, I close the session, then I want to access the attributes and get the exception. Leaving the session open solves this, but I don't want to leave all those sessions dangling around.
Then I tried to disable it by setting:
class name="de.stephanwiesner.hibernate.basis.Book" table="BOOKS"
lazy="false"
This did not help either.
So, is there a way to generally disable lazy loading in Hibernate 3 Beta?
|