Hello,

I'm not entirely sure how to map the following objects, could someone
point me in the right direction please.

I have BusinessUser and BusinessContact that both inherit from
Person.
Person has firstName, lastName and ISet<ContactAddress>.
BusinessUser and BusinessContact have additional properties related to
their type. In the business layer a "Business" has many
"BusinessUsers", each "BusinessUser" has many "BusinessContact"s.
BusinessUser is saved in BusinessUsers table and BusinessContact is
saved in BusinessContacts table.

If I had separate tables for BusinessUser_ContactAddress and
BusinessContact_ContactAddress it would be simple one-to-many mapping,
but I would like to have just one table for ContactAddress. Is this
possible to map using hbm files and if so, how?

Thanks in advance,
Filip

--

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=.


Reply via email to