Re: Tapestry + Hibernate optimistic locking

2012-12-05 Thread Geoff Callender
eld for the entities version > 2) implementation of FlushEntityEventListener with onFlushDirty() method > containing a check on the version which throws a StaleObjectStateException > when needed > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.c

Re: Tapestry + Hibernate optimistic locking

2012-12-05 Thread nquirynen
implementation of FlushEntityEventListener with onFlushDirty() method containing a check on the version which throws a StaleObjectStateException when needed -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718501.html Sent fro

Re: Tapestry + Hibernate optimistic locking

2012-12-03 Thread nquirynen
s, it seems like Hibernate ignores the value that is set to version. My Hibernate knowledge isn't that great, so maybe I'm not making any sense :) So yeah, I'm still not sure what I'm supposed to do. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tape

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Geoff Callender
:) > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718431.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > ---

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread nquirynen
Thanks for the ideas, I will look into this :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718431.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread nquirynen
don't do update and show some error } } Really don't know what's best practice to implement something like this. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718430.html Sent from the Tapestry - User

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Taha Siddiqi
e of it. > So you mean I have to use Persist instead of activation context? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718420.html > Sent from

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread nquirynen
Index.tml: -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718425.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-m

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Nov 2012 10:08:54 -0200, nquirynen 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 ins

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Taha Siddiqi
st > don't know how to make use of it. > So you mean I have to use Persist instead of activation context? > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718420.html > Sent

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread nquirynen
sage in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718420.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Lance Java
Should have been -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718416.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Lance Java
setters } Then you can submit the version as a hidden element on your form and hibernate will throw an exception if the versions don't match. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413p5718415.html Sent

Re: Tapestry + Hibernate optimistic locking

2012-11-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Nov 2012 08:47:55 -0200, nquirynen wrote: Hi, Hi! When I submit the form it will always first get the Person object again through onActivate so I understand why this isnt working. It's actually working. Optimistic locking doesn't seem to actually be what you think it is. Hi

Tapestry + Hibernate optimistic locking

2012-11-30 Thread nquirynen
message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-optimistic-locking-tp5718413.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.