Re: Optimistic Locking Example
Re: Optimistic Locking Example
- Subject: Re: Optimistic Locking Example
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 23 May 2005 08:07:32 -0400
You should bookmark these resources:
http://developer.apple.com/documentation/WebObjects/index.html
and optimistic locking handling is detailed here:
http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/
UpdateStrategies/chapter_9_section_8.html
... but really the whole book named Enterprise Objects is essential
reading if you don't want to be stuck and struggling with EOF....
http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/
index.html
HTH,
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
On May 23, 2005, at 7:44 AM, Dmitri wrote:
Hi every1,
i wanted to ask if some could send me small example programm for
optimistic locking. I mean i tryed to write one now. Just made simple
WOApplciation "Test".
Than added to this e Emodel like "test".
Now i had Applicatin Test.woa qwith nice model in it "test.eomodeld"
with only one Table "Test", with 3 attributes. testid (PrimaryKey
Locked), testfield1(Integer, Locked), testfield2(String Locked).
Now if i try to get on this applicatipn from 2 differend Browsers and
editing same object there. Like User1 takes this object to edit, Than
user2 takers this object to edit. User2 saves Changes. User1 saves
changes. here must be actually exeption from Optimist locking, that
object was already saved and have changed his values, but nothing
happens. values just overwrite last saved data in databse. Do i
understand it right, that my Optimistic Lockign thing is not working ?
So if some1 could write small application with using and actually
getting exception on saving from two different instances, i would very
appreciate this.
Dmitri
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden