i'm extending an existing Party domain model. Party is the parent type of Organization, Individual and Person, and aggregates various Contacts (Address, Phone, Email).
i need to relate one Party to another by role. the UC dictates getting all parties in (subject or object) role to the given party.
so i might introduce a table to hold the fairly static role types (PartyRoleType), and another "join" table (PartyRole) with columns for PartySubject, PartyRoleType and PartyObject.
i can see several possible mapping approaches. any suggestions on mapping this the "Right Way" ?
|