|
I want prepare mapping file for below model:
class Party
{
long id;
List<PartyRole> partyRoles;
}
class Person : Party
{
....
....
}
class Organization : Party
{
....
....
}
I need help to to creare mapping file for above model so that:
- I can list all records with some specific role e.g. Customer. If the retuned record is of Organization type, it should have Organization specific details also and if it is of Person type, it should have that details. (A customer can be a Person type or Organization type)
|