Just use optimistic locking (the little lock icon in Entity Modeler)
and do a try/catch on ec.saveChanges and catch EOGeneralAdaptorException
On May 14, 2007, at 2:01 PM, YL wrote:
It's a config table, I want to make sure onle one person can
change it at a
time.
Assume multiple people have the access for changing the table
remotely.
----- Original Message -----
From: "Chuck Hill" <[EMAIL PROTECTED]>
To: "YL" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, May 14, 2007 10:58 AM
Subject: Re: lock an entity?
Locking is at the editing context level. What are you trying to do?
Chuck
On May 12, 2007, at 7:08 PM, YL wrote:
Is there a way to lock an entity to prevent other accesses to it
(even refuse read/fetch) during the current transaction?
Thanks
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.0/803 - Release Date:
5/13/2007
12:17 PM
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%
40mac.com
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]