On Feb 6, 2009, at 10:05 PM, jmun...@his.com wrote:

Yes, Core Data does allow for many-to-many relationships. However, after a solid week of fooling around with trying to get that to work (there are only so many permutations one can use), I was not able to produce a working prototype. Nor did I see any samples that covered that particular arrangement. You are welcome to give it a shot though. Create a simple test. Two entities, Person and Hat. Many- to-many relationship. A person can wear many hats, and a hat can be worn by many people. I couldn't get this to function w/o an intermediary entity.

Did that. After a solid ten minutes of directed effort, I had a working app. Without an intermediate entity.

As a tangent, when doing database design, one begins with "entities" but those turn into "tables" so, in reality, one is really designing "tables." Entities are first used to described high-level relationships, but, as one works "down" into the implementation (going from logical to physical), most of the time the "entities" become tables or a number of tables. A great deal of fancy terminology which can sometimes add clarity but then can also muddy the waters. Just my personal opinion though.

When you use Core Data, you do not necessarily create tables.

mmalc

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to