Hello, I have this mappings:
<hibernate-mapping default-lazy="false" namespace="NHTest" assembly="NHTest"
xmlns="urn:nhibernate-mapping-2.2">
<class name="A" lazy="false" table="`A`">
<id name="Id" access="property" column="`A_ID`">
<generator class="hilo" />
</id>
<property name="AProperty" column="`A_PROPERTY`"
length="50"/>
<many-to-one name="B" class="B" column="`B_ID`"
not-null="false" />
<many-to-one name="C" class="C" column="`C_ID`"
not-null="false" />
</class>
</hibernate-mapping>
<hibernate-mapping default-lazy="false" namespace="NHTest" assembly="NHTest"
xmlns="urn:nhibernate-mapping-2.2">
<class name="B" lazy="false" table="`B`">
<id name="Id" access="property" column="`B_ID`">
<generator class="hilo" />
</id>
<property name="BProperty" column="`B_PROPERTY`"
length="50"/>
<set name="As" inverse="true">
<key column="`B_ID`"/>
<one-to-many class="A"/>
</set>
<many-to-one name="C" class="C" column="`C_ID`"
not-null="false" fetch="select"/>
</class>
</hibernate-mapping>
<hibernate-mapping default-lazy="false" namespace="NHTest" assembly="NHTest"
xmlns="urn:nhibernate-mapping-2.2">
<class name="C" lazy="false" table="`C`">
<id name="Id" access="property" column="`C_ID`">
<generator class="hilo" />
</id>
<property name="CProperty" column="`C_PROPERTY`"
length="50"/>
<set name="As" inverse="true">
<key column="`A_ID`"/>
<one-to-many class="A"/>
</set>
<set name="Bs" inverse="true">
<key column="`B_ID`"/>
<one-to-many class="B"/>
</set>
</class>
</hibernate-mapping>
As you can see, table A has an optional association with tables B and C and
B has an optional association with C.
When I run SchemaUpdate.Execute, it generates incorrect table references
from A to C and from B to C, as you can see in the attached picture.
Is this a known problem with a JIRA issue, am I doing something wrong in the
mappings, or should I create a new JIRA issue?
Thanks!
RP
--
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.
<<attachment: bd.png>>
