Interesting....since all of my calls to my DAOs are through a service, and the service methods are transacted (I'm using Spring's transaction demarcation system), I'm wondering where I will call open/close. It should really happen in Spring's transaction manager. Seems like a waste of cycles, however, as close/open will invalidate the cache and detach all existing objects
Will lazy loading on a detached object work after closing/opening the session?
In my case, the session is attached to a threadlocal object.
|