From my experience using spring MVC in conjunction with hibernate, I know about the lazy exception problem that occurs when accessing a lazy collection when rendering a view. This is the pure world of spring + hibernate, which it fixes by introducing an OpenSessionInViewInterceptor or OpenSessionInViewFilter , thereby allowing one hibernation session for each request.
So the question is, should I take care of this problem in grails, or by default for one session per request.
If this is not the default grails, provide code to implement this behavior.
Thanks.
spring model-view-controller session grails
Vladimir
source share