EO inheritance clarification needed
EO inheritance clarification needed
- Subject: EO inheritance clarification needed
- From: Dev WO <email@hidden>
- Date: Wed, 13 Oct 2004 15:41:04 +0200
Hi,
I'm actually having some problem with EO and inheritance...
I've got an abstract class "Person" and 2 sub-entities "client" and
"user", I've got a personID attribute in Person which is the PK (and so
should be the PK for both client and user).
What I don't understand is when I generate the tables (on MySQL for
now), I get a Person table with a personID attribute, but I also got a
personID attribute in both the user and client tables...I don't know if
this is the normal behavior?
If I create a client and a user directly in MySQL, I can create them
with the same personID!?
So to summarize, does the attributes in the person table should be
"duplicated" in each table of the sub-entities (inside the DB)?
and if it's the case what is the mechanism that should prevent from
having 2 identical personID in the sub-entities?
Thanks a lot for helping me clarify this.
Xavier
_______________________________________________
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