Hello, All.
I have two table in my DB. One table consist foreign key to other table.
I use folowing code to refference onto other table.
Code:
<set name="Classes" cascade="all">
<key column="manufacturer_id"/>
<one-to-many class="MyProg.DBManufacturer, DBProvider"/>
</set>
Other table contains the next mapping code:
Code:
<many-to-one name="ManufacturerId"
class="MyProg.DBRoll, DBProvider"
column="manufacturer_id"/>
But an exception as apeared:
NHibernate.MappingException : Repated column in mapping for class MyProg.DBManufacturer should be mapped with insert="false" update="false": manufacturer_id
How can I resolve this problem?
Thanks
NHibernate version:1.0.2.0