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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to