Re: ?? about opportunistic locking...
Re: ?? about opportunistic locking...
- Subject: Re: ?? about opportunistic locking...
- From: Mark Ritchie <email@hidden>
- Date: Mon, 17 May 2010 14:30:12 -0700
Hey!
On 17/May/2010, at 2:18 PM, Theodore Petrosky wrote:
> so either I am doing something wrong or I don't understand opportunistic locking..
Optimistic locking is for the case when one WOA is optimistic that it's changes to a record won't conflict with another WOA's changes to the same record.
I'm guessing that you have a single WOA, in which case optimistic locking isn't doing what you want. Your EOEditingContext delegate needs to catch the notifications for editingContextShouldMergeChangesForObject() and editingContextDidMergeChanges() and handle things since the default is to silently merge the new over the old.
Apparently we need a wiki page about this since it's been the matter of some contention lately. ;-)
M.
_______________________________________________
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