• 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
Questions on Single Table Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions on Single Table Inheritance


  • Subject: Questions on Single Table Inheritance
  • From: Owen McKerrow <email@hidden>
  • Date: Thu, 31 Mar 2005 14:18:40 +1000

Hi All,

Switching around one of my apps so that it use single table inheritance. I've read up on it in Apple's "Using EOModler" and Chuck's book, but I still have a couple of questions.

So I have a Member table ( will be parent ) and Im going to create to Sub Tables, called Researcher and Student.
I thought that once I had created these sub-entities that I delete the attributes from them that I don't want. e.g. we don't need the students room number but we do need it for researcher, so I remove the phone number from the Student entity. However EOModler then starts to complain when I save it that the Sub-Table is missing one of the parents attributes. can I just ignore this complaint ? Am I doing it the right way ?


Also Im trying to figure out if I will need to have instances of member ( i.e. the parent class will be concrete ). I will never just make a "Member" they will always be either a Student or a Researcher BUT I will need a combine array of the two of them, where I won't care which type Im dealing with i.e. displaying the authors of a book, written by both researcher and students.
And if I have to keep Member concrete does this mean I need to give it a restricting qualifier ? i.e. its own value for the Type column ?


And finally there is a table called Member_Details which has 2 BLOB's in it ( its in its own table for efficiencies sake ), but only researchers need an instance of this table. So Im assuming under Member I make the relationship optional. And under researcher I would then switch that to mandatory ?


Thanks Very Much

Owen McKerrow
WebMaster, emlab
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

People who prefer typing to pointing then seem to prefer acronyms to save typing :-)
-Denis Stanton, On people using Command Line Interfaces


_______________________________________________
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: Questions on Single Table Inheritance
      • From: David LeBer <email@hidden>
  • Prev by Date: accessing web statistics from WO application
  • Next by Date: Re: Questions on Single Table Inheritance
  • Previous by thread: accessing web statistics from WO application
  • Next by thread: Re: Questions on Single Table Inheritance
  • Index(es):
    • Date
    • Thread