how to represent supertype/subtype?
Asked by
Cuong
Hi,
I have 3 classes: PERSON (supertype) and 2 subtypes: STUDENT, TEACHER
In OpenERP, we can use inheritance for STUDENT and TEACHER. This will introduce foreign key (named person_id) in STUDENT, TEACHER tables. I create a view for PERSON. I want to edit/display all attributes of STUDENT or TEACHER in PERSON view.
In case of disjoint/overlap between supertype and subtype, how can we solve it?
Thanks,
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Cuong
- Solved:
- Last query:
- Last reply:
To post a message you must log in.