Re: 3 way Many to many
Re: 3 way Many to many
- Subject: Re: 3 way Many to many
- From: Arturo PĂ©rez <email@hidden>
- Date: Mon, 27 Jan 2003 23:44:44 -0500
On Monday, January 27, 2003, at 11:38 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.
Jevon
On Friday, January 24, 2003, at 03:06 PM, Art Isbell wrote:
On Friday, January 24, 2003, at 06:23 AM, Jevon Hills wrote:
We now wish to set up a 3 way (Many to Many to Many) relation ship.
For Example a Person has a set of permissions on a console. We want
to
model a person having different sets of permissions for different
consoles.
[demime 0.98b removed an attachment of type multipart/appledouble]
In the old way of doing this I would just acquire the 3 id's I needed
and create a new row. How do I set this up in EOModeler so that I
can
create/use the technology to my advantage.
I'm trying to understand what your issue is. I have in my models
relationships like these.
I just do a
consoleEO. addObjectToBothSidesOfRelationshipWithKey(permissionEO,
"permission");
Person.addObjectToBothSidesOfRelationshipWithKey(consoleEO,
"ConsolePersonPermission");
_______________________________________________
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.