• 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: Many-To-Many Predicates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Many-To-Many Predicates (From: Todd Freese <email@hidden>)

  • Prev by Date: Re: App menubar dead
  • Next by Date: Re: NSTimer question: How to fire at second 00, 05, 10 etc ?
  • Previous by thread: Many-To-Many Predicates
  • Next by thread: WebView causes: cannot decode object of class (WebView)
  • Index(es):
    • Date
    • Thread