Hello,

I've read all the documentation on the different inheritance types---I want to use horizontal inheritance to subclass an entity. All the docs I can find seem to stop after discussing the types, though, so I'm not quite sure how to actually set it up.

I have a framework containing a model for some basic EOs common to different applications, including a Person class. In a particular application, I want to subclass Person to create AMPerson which adds some relationships to Person.

1. In Entity Modeler, I've created AMPerson, and selected Person as its parent. The attributes of Person appear in AMPerson, and I've added the additional relationships. Is that it? I haven't specified "horizontal inheritance" anywhere---is that something I select using Entity Modeler, or is it implied by how my application uses the new EO?

2. Practical WebObjects (p. 32) states that horizontal inheritance "puts a complete copy of each entity into a separate table". Does EOF do this for me? That is, if I use _AMPerson.createAMPerson(), does EOF put a row in the 'amperson' table, and a corresponding row in the 'person' table?

I'm sure I'm close, if someone can just help me with a few of these details. Alternatively, if I've missed some documentation that describes all this, feel free to point me there.


--
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


_______________________________________________
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