<class name="R">
    <component name="C">
          <bag name="Ns" inverse="false" fetch="join">
            <key column="r_fk" not-null="true"/>
            <one-to-many class="N"/>
          </bag>
    </component>
    <component name="A">
          <bag name="Ns" inverse="false" fetch="join">
            <key column="p_fk" not-null="true"/>
            <one-to-many class="N"/>
          </bag>
    </component>
    </class>


I get exception when building session factory:

*Duplicate property mapping of R.NsBackref found in N*

It looks like Nhibernate creates a hidden property mapping for 
unidirectional one-to-many associations on root level class, but i have 2 
such cause root class contains two components which uses same collection of 
same types.

My class structure: R contains C and A, C and A both have a collection of N 
name Ns.

I asked same question at StackOverflow site, here is link: 
http://stackoverflow.com/questions/18611200/nhibernate-unidirectional-one-to-many-duplicate-mapping-error

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to