Re: multiple objects in an EO, how to saveChanges() on only one
Re: multiple objects in an EO, how to saveChanges() on only one
- Subject: Re: multiple objects in an EO, how to saveChanges() on only one
- From: Nathan Walker <email@hidden>
- Date: Sat, 15 Oct 2005 17:51:57 -0400
you need to put b in its own editing context.... try:
EOEditingContext newEC = new EOEditingContext();
newEC.lock();
YourObjectClass b = (YourObjectClass)EOUtilities.localInstanceOfObject
(newEC, yourObject);
newEC.saveChanges();
newEC.unlock();
newEC.dispose();
; - )
On Oct 15, 2005, at 5:46 PM, Dev WO wrote:
Hi list,
I have different object in the editing context, lets say a, b and c.
I need to save changes to the database only for b (for example;)).
I though b().editingContext().saveChanges() would do the trick, but
it also tries to save all other object...
Anyone with a clue on how to handle this?
Thanks a lot
Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40visionworxpro.com
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