Re: PKs With Multitable Inheritance
Re: PKs With Multitable Inheritance
- Subject: Re: PKs With Multitable Inheritance
- From: Chuck Hill <email@hidden>
- Date: Wed, 27 Jul 2011 17:23:42 -0700
On 2011-07-27, at 5:21 PM, Ted Archibald wrote:
> With a project I'm working on I decided to have a number of my entities inherit from an abstract entity. Each of these entities have their own separate table (I forget what kind of inheritance that's called...).
Horizontal.
> I noticed that EOF is only generating a single series of PKs for the abstract parent entity and not PKs for each child entity. I read somewhere that that's what EOF likes to do with inheritance. But considering I'd never be dealing with the abstract entity, is there a way to make EOF give PKs to each individual entity?
There is probably a way, but it will lead to corrupt data or other problems. EOF needs all the EOs in a hierarchy to have a unique key regardless of entity.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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