Re: Many-To-Many Predicates
Re: Many-To-Many Predicates
- Subject: Re: Many-To-Many Predicates
- From: Frédéric Testuz <email@hidden>
- Date: Thu, 26 Oct 2006 10:39:32 +0200
Le 26 oct. 06 à 02:17, Todd Freese a écrit :
I am having trouble creating a predicate that works across multiple
relationships. There are two entities that are Many-To-Many to each
other through a third "link" entity. Basically an entity of Clips
and Albums. A single Clip can be in multiple Albums, likewise, an
Album has multiple Clips. I need the third
"link" entity because I need to maintain the sort order in each of
the albums. The sort is user defined and would be different for
each album.
Here is a link to a screen grab of the model. http://
www.filmworkers.com/model.jpg
Any ideas on what I am missing?
What seems curious to me is why the two relationships are many-to-
many. I have a similar model (with albums and authors) and the
relationships are :
albums<-->>role<<-->authors (it's because an author can have
different roles in different albums).
And are you sure sortKey must be a property of the Link entity ? You
said that each album needs maintain the sort order, why not have a
clipSortKey in the Album ?
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden