Re: EOF Inheritance, Relationships between super class and subclass
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