Damn, I meant to send a mail to the list. Instead I sent it to Jon only. I hope he doesnt mind me reposting his response with my mail quoted at the bottom.....
Gavin Jon wrote: >Don't worry, I wouldn't check anything like this straight in... I just >wanted to see what the thoughts of everyone else was on this "feature". > >I'll go ahead an implement this for collections too and then submit it as a >patch for everyone to take a look at. > >I see your point about this being available for _disconnected_ versus >_closed_ sessions, and I'll be happy to make my code make this distinction >between the two cases. > >Jon... ----- Original Message ----- From: <Gavin_King/[EMAIL PROTECTED]> To: "Jon Lipsky" <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 12:29 PM Subject: Re: [Hibernate-devel] Feature for Lazy Initialization using Proxies > > A few thoughts on this, off the top of my head... > > 1. If its done for proxies, it should also be done for collections. > 2. I'm happy for this to occur with a _disconnected_ Session, but I > dunno about with a _closed_ Session. > 3. There is a broader question of using lazy initialization with > session disconnection/reconnection in that we can't do a version > number check when we initialize. I think it's sort of okay, as long > as the user aware of what (s)he is doing..... > 4. Its a feature that should definately be disabled by default. > > Jon, please don't commit any code like this str8 into CVS. Would you > please use the patch manager on the Sourceforge page, so we can all > have a look over it before you commit it..... > > Thanks for all the help. > > Gavin > > >I modified the LazyInitializer so that instead of throwing an exception > >because the session is closed, it will open a new connection and reconnect > >the session if the session, do the find, and the close the session > again... >This way I only have to load the objects I really need at > runtime, and I >don't need to worry about managing the session. > > >If anyone has any comments on this kind of functionality, then I would > >definately like to hear them. > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel