On Wed, 24 Oct 2012 22:41:01 -0200, sommeralex
<alexander.som...@gmail.com> wrote:
Hi!
Hi!
I know that this is more a hibernate than a tapestry question, but i am
not sure if my question is really more hibernate specific, or a standard
problem.
This is a pure Hibernate question as far as I can see.
If i am logged in as User user with session x, but some values of my user
get changed from the outside of a session y my User user in my session x
has still the "old" values. If i am now persisting my User user from
session x, the new values from session y are overwritten and are
therefore lost. I am merging the object via DAO.merge - but it seems
that hibernate does not know which values are old, and new.
Check the Hibernate documentation about optimistic locking:
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/transactions.html.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org