Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Partially saving the object graph. How?



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden


This email sent to email@hidden
References: 
 >Partially saving the object graph. How? (From: Jean Pierre Malrieu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.