Re: Many-to-Many Question
Re: Many-to-Many Question
- Subject: Re: Many-to-Many Question
- From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Fri, 26 Mar 2004 17:48:23 -0600
James Cicenia, email@hidden, wrote:
>I have followed the instructions in creating a many-to-many
>relationship:
>
>Portfolio <---->> Metrics <---->> MetricListNames <---->> LinkingTable
><<----> Project
>
>What I want to do is on the Project page have a list of "Metrics" in a
>repetition in column A
>with a popup of the "MetricListNames" in column B. How do I use the
>popup to link/create
>the "LinkingTable" record/object??
>
>Do I have to manually instantiate the LinkingTable Object and set the
>relationships? Or
>is there an automagic way that WebObjects can do this?
It's automagic unless you want to access per-relation instance data
(like, say a per-relation permission or rating or whatever). Then you'll
want to expose your entity to your Java code. It's still mostly
automatic, but your app will probably need some custom logic.
Open your model in EOModeler. Switch to entity table view. Select two
entities, and choose Property->Join in Many-to-Many. The join
table+entity and necessary relationships will be created for you.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.