• 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
Re: Setting up horizontal inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting up horizontal inheritance


  • Subject: Re: Setting up horizontal inheritance
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 31 Oct 2008 21:47:32 -0700


On Oct 31, 2008, at 9:39 PM, Paul Hoadley wrote:

After finding "Subclass Entity" in Entity Modeler, and re-making the child entity specifying horizontal inheritance, this question remains:

On 01/11/2008, at 11:19 AM, Paul Hoadley wrote:

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've just used _AMPerson.createAMPerson() to create a new AMPerson. There's a new row in 'amperson', and nothing in 'person'. Have I misunderstood "complete copy" here? That is, should there be a corresponding new row in 'person', or not?


No, Person will remain empty as it is abstract. Each concrete entity is written to its own table. One row (and hence one table) is written per EO.

Are you sure you want Horizontal Inheritance? Single table is usually the best choice.


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
  • Follow-Ups:
    • Re: Setting up horizontal inheritance
      • From: Paul Hoadley <email@hidden>
References: 
 >Setting up horizontal inheritance (From: Paul Hoadley <email@hidden>)
 >Re: Setting up horizontal inheritance (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Setting up horizontal inheritance
  • Next by Date: Re: Setting up horizontal inheritance
  • Previous by thread: Re: Setting up horizontal inheritance
  • Next by thread: Re: Setting up horizontal inheritance
  • Index(es):
    • Date
    • Thread