• 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: 3 way Many to many
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3 way Many to many


  • Subject: Re: 3 way Many to many
  • From: Art Isbell <email@hidden>
  • Date: Mon, 27 Jan 2003 20:16:33 -1000

On Monday, January 27, 2003, at 06:18  AM, Jevon Hills wrote:

Here is my attempt to send an ascii ER model of what we're thinking of.

									+==========+
									+console         +
									+----------------- +
								-------+consoleID     +
								|	+==========+
								|
								|
								|
+========================+		|
+ConsolePersonPermission 	  +		|	+=========  +
+------------------------------------------+		|	+person          +
+consoleID               			  +---------- |	+-----------------+
+personID                			  +-----------------	+personID      +
+permissionID            		  +----------	|	+==========+
+========================+		|
								|	 +=============+
								|	 +permission          +
								|	 +----------------------+
								|-------+permissionID      +
									 +=============+





This way you can circumvent the model.  You must link
	People to Consoles to Permissions
all at once.

This should work fine as long as this model represents reality and you model the relationships as EOModeler does when it creates a many-to-many relationship between 2 entities. The to-many relationships to the join entity must all propagate their primary keys and they should cascade delete. It might not make sense to flatten all relationships across the join entity unless they will all be used in your app. Don't set relationships as class properties unless you'll be using them.


Art
http://homepage.mac.com/aisbell/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: 3 way Many to many (From: Jevon Hills <email@hidden>)

  • Prev by Date: Fetch Specifications
  • Next by Date: Re: Fetch Specifications
  • Previous by thread: Re: 3 way Many to many
  • Next by thread: WO 5.2 stability
  • Index(es):
    • Date
    • Thread