Isn't this just a simple many-to-many?

Person <-->> PersonAddress <<--> Address
Business <-->> BusinessAddress <<--> Address

It might get complicated if you need the Address to be aware of who's using
it, but if not I can't see the complications.

On Thu, Jun 4, 2009 at 12:03 PM, jobsamuel <[email protected]> wrote:

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