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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to