Em Sat, 19 Dec 2009 16:58:10 -0200, Everton Agner
<everton_ag...@yahoo.com.br> escreveu:
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.
Well, your core code isn't using what it should. In my Generic
DAO-Hibernate package, I used update() and I tried many ways to avoid the
"a different object with the same identifier value was already associated
with the session:...". No one worked. Now my package uses merge(). JPA
doesn't have an update() method, just merge().
--
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