• 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
Many-to-many w/ one entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many-to-many w/ one entity


  • Subject: Many-to-many w/ one entity
  • From: Clark Mueller <email@hidden>
  • Date: Sat, 22 Jul 2006 22:20:06 -0500

All,

I'm trying to create a many-to-many relationship with a single entity. Essentially, what I'm doing is trying to show "related products" for a Product entity. EOModeler certainly won't model this one. I have tried to model it myself (both in OpenBase directly, and in EOModeler) mimicking the way EOModeler builds one with two entities... but this breaks down a little bit when I try to sort out the relationships from the intermediate table, so I haven't had a lot of success. I am hoping that's just because I've never done it before, and that someone can talk me through it. :-)

I've also seen this implemented in some cases by adding an attribute (e.g. "related_products") to the entity containing data like this:

pk_1|pk_2|pk_3

pointing to the related items. But I am sure that this is a pain in the butt to use with EO, to actually fetch those related objects.

Can someone suggest the best way to model this relationship?

Thanks & regards,
Clark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Many-to-many w/ one entity
      • From: Mark Morris <email@hidden>
  • Prev by Date: Re: How to rename a component in Xcode?
  • Next by Date: Re: Having trouble with WOFileUpload
  • Previous by thread: Re: How to rename a component in Xcode?
  • Next by thread: Re: Many-to-many w/ one entity
  • Index(es):
    • Date
    • Thread