• 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: EOF Inheritance, Relationships between super class and subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOF Inheritance, Relationships between super class and subclass


  • Subject: Re: EOF Inheritance, Relationships between super class and subclass
  • From: Guido Neitzer <email@hidden>
  • Date: Mon, 3 Jul 2006 08:27:56 +0200

On 03.07.2006, at 4:34 Uhr, Mr. G Brown wrote:

a VerifiedPatient 'is a' PatientAlias , (a special alias, which is why I asked about inheritance), AND 'has a' to many relationship with objects of its parent class (PatientAliases). Of course it will work to have a VerifiedPatient table and a PatientAlias table and cut and paste common code, properties, etc. between the classes, but that's not very DRY (don't repeat yourself) and OO, but it may have to do.

You don't have to use inheritance to not repeat yourself. You may work with composition.


You have a couple of entities:

PatientAlias <<---> VerifiedPatient

and

PatientData to which you may have relationships to both of the patient entities.

cug

_______________________________________________
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


References: 
 >EOF Inheritance, Relationships between super class and subclass (From: "Mr. G Brown" <email@hidden>)
 >Re: EOF Inheritance, Relationships between super class and subclass (From: Ken Anderson <email@hidden>)
 >Re: EOF Inheritance, Relationships between super class and subclass (From: "Mr. G Brown" <email@hidden>)
 >Re: EOF Inheritance, Relationships between super class and subclass (From: Ian Joyner <email@hidden>)
 >Re: EOF Inheritance, Relationships between super class and subclass (From: "Mr. G Brown" <email@hidden>)

  • Prev by Date: Re: Wonder Apache 2 Adaptor Help
  • Next by Date: Locations of resources ye again
  • Previous by thread: Re: EOF Inheritance, Relationships between super class and subclass
  • Next by thread: Re: EOF Inheritance, Relationships between super class and subclass
  • Index(es):
    • Date
    • Thread