I never actually used 2, so I wouldn't know of problems, but 1 is more space efficient, while 2 is not that much resource (processor, database) efficient, so 1 would have my preference anyway.
I think 3 makes sense if you have a good business reason for that. But I haven't seen a lot of actual situations where that would really be the case (though I can think of some). 1 Is a good choice for most cases I think. Eelco On 7/15/06, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote: > Hi, > AFAIK, there are three ways of implementing application transactions, > lazy loading, etc. stuff with Wicket & Hibernate : > 1 - The hard way, where you pass object ids, and load & save them in > each request cycle using a new session > 2 - The detached object way, where you attach the old objects in each > request cycle to a new session > 3 - Using long sessions, where you keep a session during multiple > requests and finally close when the unit of work is finished > > What I've seen in the examples & wicket-phonebook is mostly number 1. > However, as soon as you start working like 2 or 3, problems start. > Things seem to get too complicated in these two scenarios(Actually I'm > starting to think , despite its disadvantages, number 1 is better for a > component web framework). > I would like to know if anybody has been working on these or has come up > with a convenient solution to the problems arising here. > > Iman > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user