Re: How to selectively save EO
Re: How to selectively save EO
- Subject: Re: How to selectively save EO
- From: Arturo Perez <email@hidden>
- Date: Fri, 21 Apr 2006 11:50:21 -0400
Louis Demers wrote:
Hi
I would like to save newly created EO immediately but there could be
other objects in the default EditingContext which I do not want to
commit to the database immediately.
My first attempt was to create a new short term EditignContext, insert
my newly created EO in it and call saveChanges.
However because this object has a relationsip to another one in the
defaultEditingContext, it cause an error about being unable to obtain
globalId
Any suggestions how to acheive this ?
Besides the other suggestion the other thing you can do is to use nested
EditingContexts. That way you can sort of temporarily save things kind
of in memory until you're done with everything. Don't know if this is
applicable to what you're doing.
-arturo
_______________________________________________
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