> Are you using Session.update()? Use Session.merge() instead. It should solve > your problem.
Yes I am, but this method (the one I call on tapestry code) is on a "base" core code that my app uses, I can't change it. ________________________________ De: Thiago H. de Paula Figueiredo <thiag...@gmail.com> Para: Tapestry users <users@tapestry.apache.org> Enviadas: Sexta-feira, 18 de Dezembro de 2009 17:57:08 Assunto: Re: Hibernate session should be cleared/flushed between lifecycle methods? Em Fri, 18 Dec 2009 17:40:10 -0200, Everton Agner <everton_ag...@yahoo.com.br> escreveu: > Hi, Hi! > So, In my onSuccess() method, I update my "current" object on Session. But, I > get a: > > "a different object with the same identifier value was already associated > with the session:..." Are you using Session.update()? Use Session.merge() instead. It should solve your problem. --Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com