Re: [OT] Entity Modeler, how to create a many to many

Mike Schrag <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
And your recall would be right :)

Actually, the latest builds have a much fancier relationship dialog,  
so you might want to upgrade to get all the relationshippy goodness  
if you haven't already.

If you select two entities in the entity tree (outline view), you can  
then click the "New Relationship" action and it will bring up the New  
Relationship Dialog.  I love the new versions of this because it even  
has an option to add the foreign key attribute for you, too, for non- 
many-to-many's (though I don't recall what it does if you don't use  
Project Wonder -- it uses prototype 'id' when you have Project Wonder).

In the dialog, you can select which sides (or both) of the  
relationship are to-many, you can name the relationships, you can  
optionally have it create a foreign key attribute for one-to-many  
(single foreign key), or you can select the join attributes.

ms

On Jan 6, 2007, at 3:37 AM, Dev WO wrote:

> Hello,
> I've been trying to work with Eclipse/WOProject for my latest  
> project, and it seems I can make it:)
>
> But actually I'm stick on something which might be obvious:  
> creating a many to many relationship in Entity Modeler.
>
> I used to have to select the 2 entities in EOModeler and do "join  
> in many to many", but I can't find where's that feature in Entity  
> Modeler...
> I know I could create the join table, etc but I think I recall a  
> demo of EM at WWDC by Mike Schrag doing something like this...but  
> maybe I'm wrong.
>
> Could someone tell me how to make a many to many using Entity  
> Modeler:)
>
> Thanks
>
> Xavier
>
> _______________________________________________
> 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/mschrag% 
> 40mdimension.com
>
> This email sent to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.