• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Relationships


  • Subject: Re: Core Data Relationships
  • From: Chris Hanson <email@hidden>
  • Date: Sat, 7 Apr 2007 09:43:25 -0700

On Apr 7, 2007, at 2:10 AM, Matt D wrote:

Darn, I was hoping it would automatically enforce relationships set in the modeler.. Oh well ... Thank you for your replies, I appreciate your help very much.

Let's be clear: Core Data does automatically enforce relationships, along with the rest of the schema specified by a data model. For example, if you try to violate a relationship's cardinality by adding more or fewer objects to it than it allows, Core Data will return a validation error when you attempt to save.


What Core Data doesn't do is automatically create your object graph for you. This is because only you know what you actually intend your object graph to represent and how you intend to use it. It's similar to the SQL data definition language or XMLSchema in that sense; just describing tables and constraints or describing elements and attributes doesn't automatically get you data that conforms to what you've described.

Map vs. territory.

  -- Chris



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core Data Relationships (From: Matt D <email@hidden>)
 >Re: Core Data Relationships (From: mmalc crawford <email@hidden>)
 >Re: Core Data Relationships (From: Matt D <email@hidden>)
 >Re: Core Data Relationships (From: mmalc crawford <email@hidden>)
 >Re: Core Data Relationships (From: Matt D <email@hidden>)

  • Prev by Date: Re: App crashes in 10.4.9
  • Next by Date: Re: WebService requests returning nil
  • Previous by thread: Re: Core Data Relationships
  • Next by thread: Re: Core Data Relationships
  • Index(es):
    • Date
    • Thread