i prefer you to use the session.refresh 2009/2/5 James Sherwood <jsherw...@rgisolutions.com>
> Hello, > > I used session.update(Object) and it worked, is there any difference? > > --James > > -----Original Message----- > From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] > Sent: February-05-09 4:48 PM > To: Tapestry users > Subject: Re: T5: Hibernate/Session question > > Em Thu, 05 Feb 2009 15:59:53 -0300, James Sherwood > <jsherw...@rgisolutions.com> escreveu: > > > Thanks, > > > > I do not want to have to change the actual POJOs as I generate them using > > reverse eng so I think I will just do the lookup.\ > > One solution is to call session.lock(object, LockMode.NONE) before reading > any property values. It associates the object with the given session, thus > avoiding the LazyInstantiationException's. ;) > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- with regards Sven Homburg http://www.chenillekit.org http://tapestry5-components.googlecode.com