• 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: [Newbie]ManyToMany
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Newbie]ManyToMany


  • Subject: Re: [Newbie]ManyToMany
  • From: Jonathan Rochkind <email@hidden>
  • Date: Wed, 17 Mar 2004 16:48:33 -0600

At 5:26 PM -0500 3/17/04, Kieran Kelleher wrote:
Forget having EoModeler make a many-to-many.

Just make relationships such as:

T1 <=>>T2    and T2<<=>T3, (where > is a to-one and >> is a to-many)

then you can use T1.T2.T3(), T3.T2.T1() and also use flattened T1.T3() or T3.T1()

How could you use those flattened relationships from T1 to T3? Are you suggesting defining the flattened relationship in the EOModel as a class property, and ALSO defining the direct relationship as a class property? I think this is rather a bad idea myself, but if you've done it succesfully I'm interested in hearing about it.


Otherwise.... how could you "also use flattened T1.T3() or T3.T1()"? My experience is you either use flattened relationships, or you don't. If you don't (perhaps because you need exposed attributes in the intermediary table), then you've got to go through the intermediary table to get from T1 to T3 or vice versa.

--Jonathan



-K

On Mar 17, 2004, at 4:17 PM, Emmanuel KOPP wrote:

Hi all,

I've 3 tables

T1 => groups (groupID)
T3 => forums (forumID)
T2 => Auth_Access (groupID and forumID + more attributes)

T1 is connected to T3 via a manyTomany (T2).

My problems is that T2 must have other attributes which I must be able to reach from T1 or/and T3

I tested a flattened table but the result is not convincing

All help would be useful for me.

Thank

Manu
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: [Newbie]ManyToMany
      • From: David LeBer <email@hidden>
References: 
 >[Newbie]ManyToMany (From: Emmanuel KOPP <email@hidden>)
 >Re: [Newbie]ManyToMany (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Post Update to 5.2.3 Exception: java.lang.reflect.InvocationTargetException
  • Next by Date: Re: Cannot get port 1085 to start up
  • Previous by thread: Re: [Newbie]ManyToMany
  • Next by thread: Re: [Newbie]ManyToMany
  • Index(es):
    • Date
    • Thread