FROM : Chris Hanson
DATE : Sat Apr 07 18:43:25 2007
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
DATE : Sat Apr 07 18:43:25 2007
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
| Related mails | Author | Date |
|---|---|---|
| Matt D | Apr 5, 11:33 | |
| mmalc crawford | Apr 5, 12:28 | |
| Julio Cesar Silva… | Apr 5, 13:22 | |
| Matt D | Apr 6, 14:14 | |
| mmalc crawford | Apr 6, 17:14 | |
| Matt D | Apr 6, 22:11 | |
| Matt D | Apr 7, 11:10 | |
| Chris Hanson | Apr 7, 18:43 |






Cocoa mail archive

