Example given here: http://grails.github.io/grails-doc/2.3.11/guide/services.html
Review how it's possible to get this exception if a Hibernate session is closed via transaction rollback but the exception carries a pointer to the non-greedy loaded object. In the catch clause if the object's children are accessed a LazyInitializationException is thrown because the object is detached and it's lazy-loaded children are uninitialized.
No comments:
Post a Comment