Re: Using compound primary keys with WebObjects?
Re: Using compound primary keys with WebObjects?
- Subject: Re: Using compound primary keys with WebObjects?
- From: Paul Suh <email@hidden>
- Date: Mon, 17 Apr 2006 16:19:38 -0400
Peter,
On Apr 17, 2006, at 3:07 PM, "peter Burnes" <email@hidden>
wrote:
While I do use automated primary key generation, I inherited a few
tables that are "join tables" where the primary keys are compounded.
It seems like from reading the Apple docs and even seeing the
propagate primary key option in EOModeler, that is there is support
for this concept.
I am just interested if there are those out there that have used
"propagate primary key"/compound keys or even custom-generated primary
keys in real-world WebObjects applications? I know I could try to
convince the DBA to redesign the data model, but at this point trying
to see if WebObjects can handle this legacy application or if I
proceed, with trying a WebObjects solution, that I will be heading for
pitfalls without using the "WebObjects way".
Compound primary keys for join tables are a special case in EOF. They
are automatically recognized and the primary keys from the two joined
EO's are propagated to the join table. It should "just work" -- and
usually does in my experience.
--Paul
Paul
Suh
http://www.ps-enable.com/
paul.suh@ps-
enable.com
(301) 643-1516
_______________________________________________
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