Re: Setting up horizontal inheritance
Re: Setting up horizontal inheritance
- Subject: Re: Setting up horizontal inheritance
- From: Lachlan Deck <email@hidden>
- Date: Wed, 5 Nov 2008 06:25:26 +1100
On 04/11/2008, at 8:50 PM, Paul Hoadley wrote:
I have another clue. Thanks for bearing with me.
On 04/11/2008, at 6:27 PM, Paul Hoadley wrote:
Maybe I need to start again from scratch.
Just to recap:
1. I have a framework that contains a model Auth that contains an
entity Person. It also contains the UserPreference entity that has
a to-one relationship to Person. Person is abstract.
2. I have an app that contains a model AMAuth that contains an
entity AMPerson. I created AMPerson by subclassing Person in the
Auth model (nominating HI), and then cut + pasting over the entries
for AMPerson in index.eomodeld, and AMPerson.plist to the AMAuth
model. I changed the package on the class appropriately. (Is there
an easier way to generate a cross-model sub-entity?)
3. I have set up the tables using the SQL generated by Entity
Modeler. This creates both 'person' and 'amperson',
That is not horizontal inheritance to my understanding. You have
Vertical inheritance and so you've not modelled it correctly. Person
should not have a table for Horizontal.
with regards,
--
Lachlan Deck
_______________________________________________
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