I have three tables Person, Organization and Address. The relationship between Person and Address is 1 to many, as is the relationship between Organization and Address. I have an intermediate Party table with Party ID that manages the relationship
Person - PersonID - Name -PartyID (references Party.ID)
Organization -OrgID -Name -PartyID (references Party.ID)
Address -AddrID -PartyID (references Party.ID) -Street
Party. -PartyID
My Person object and Organization object have a collection of Address. How do I define this relationship in the hibernate cfg file.
TIA
|