Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Order of Objects Saved to DB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Order of Objects Saved to DB



Oy. Is this a legacy schema that you can't modify such that the primary keys aren't actually used for anything?

tb

On Jan 12, 2009, at 4:17 PM, Dawn Lockhart wrote:
I am creating new EO objects and I need them to be saved to the DB in the
same order that they were created so their primary keys will be in the order
created. It seems like when I call saveChanges on the editing context that
the records are just being saved to the DB all willy nilly.


It looks like the only way to enforce this is to do multiple calls to
saveChanges which I'd like to avoid.

Is there some way to have it save a group of objects in the order created?

_______________________________________________ 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
References: 
 >Order of Objects Saved to DB (From: Dawn Lockhart <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.