Another way to do this could be to have the Address table store a
value in column that identifies which type of address is it - say 1
for Person Address and 2 for Business Address.
You can now map the Person and Business class to Address class using
one-to-many (specifying the where in the collection mapping)
If you need a bi-directional relationship you can map from Address to
Person or Business using <any> mapping

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to