Re: Partially saving the object graph. How?
Re: Partially saving the object graph. How?
- Subject: Re: Partially saving the object graph. How?
- From: Peter Vandoros <email@hidden>
- Date: Mon, 19 Mar 2007 18:06:16 +1100
It depends on what you are doing with entity B.
If you are not modifying any B objects, then you don't need to do
anything because only updated/inserted/deleted objects in the editing
context will get committed to the database.
If you are modifying A and B objects, then you can't just commit A
changes because both A and B objects must be part of the same editing
context. If this is what you need to do, then i think you might to
reconsider your model.
Basically, what gets committed is determined by the editing context you
call saveChanges() on. This is what determines the DB transaction.
Regards
Peter
Jean Pierre Malrieu wrote:
Hi,
I have some instances of entity A that are not functionnal without
related instances of entity B.
But in some circumstances, I need to save only the instances of object A.
What is the best strategy to acheive this?
Thanks.
JPM
_______________________________________________
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
--This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia
Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
----------------------------------
IMPORTANT: This e-mail message and any attachments are confidential and
may be privileged. If received in error, please reply to this message
and destroy all copies and any attachments. You should check this
message and any attachments for viruses or defects. Our liability is
limited to resupplying any affected message or attachments. For more
information about Etech Group, please visit us at
http://www.etechgroup.com.au.
_______________________________________________
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