He can even use one-to-many mapped to 2 different columns in the Address.

2009/6/5 Germán Schuager <[email protected]>

> If you need a bidirectional association (do you need to know to which
> person does a given address belongs to?) I think that you have to map mather
> and father as an "any" mapping in the children:
> http://www.nhforge.org/doc/nh/en/index.html#mapping-types-anymapping
>
>
>
> On Fri, Jun 5, 2009 at 11:47 AM, Peter <[email protected]> wrote:
>
>>
>> All I'm really trying to do is use one object in the collections of
>> several other object types.  The hibernate documentation has a good
>> example of parent->children, but not of father->children, mother-
>> >children (assuming father and mother are different types).
>>
>> Lets say I create a seperate join table for each association like
>> James suggested.  How would I create a mapping that has minimal impact
>> on my models?
>>
>>
>
> >
>


-- 
Fabio Maulo

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