• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting up horizontal inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting up horizontal inheritance


  • Subject: Setting up horizontal inheritance
  • From: Paul Hoadley <email@hidden>
  • Date: Sat, 1 Nov 2008 11:19:54 +1030

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Setting up horizontal inheritance
      • From: Paul Hoadley <email@hidden>
    • Re: Setting up horizontal inheritance
      • From: Paul Hoadley <email@hidden>
  • Prev by Date: Re: WOApplication build problem on Windows 2003
  • Next by Date: Re: Setting up horizontal inheritance
  • Previous by thread: Re: WOApplication build problem on Windows 2003
  • Next by thread: Re: Setting up horizontal inheritance
  • Index(es):
    • Date
    • Thread