On Fri, 30 Nov 2012 10:08:54 -0200, nquirynen <nat...@pensionarchitects.be> wrote:

Hi,

Hi!

Thanks for the explanation. Yes with "I understand its not working" I meant my approach is failing. I understand optimistic locking is working, but just don't know how to make use of it.
So you mean I have to use Persist instead of activation context?

No, please don't do that. Instead, turn your version field into an Integer instead of Date (that's what Hibernate recommends) and add the version to the activation context. Then, inside onActivate(), check whether the version coming through the activation context and the one in the persisted object are the same.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to