あなたの助けが必要です。
クラスを<Join>
タグでマッピングし、追加したい<bag>
何かのようなもの :
<class name="Hilan.HilanNet.Common.Pension.ClassA,Hilan.HilanNet.Common" table="ClassA_VW">
<cache usage="read-write"/>
<composite-id>
<key-property name="columnA" column="sqlColumnA"/>
<key-many-to-one name="columnB" column="sqlColumnB" class="Hilan.HilanNet.Common.Pension.ClassB, Hilan.HilanNet.Common" />
</composite-id>
other properties
<join optional="true" table="AdditionalColumns_TB" inverse="false" >
<key>
<column name="columnA" />
<column name="columnB"/>
</key>
<property name="propertyA" />
</join>
here I want to add the bag
<bag
name="Details"
lazy="true"
inverse="true"
access="nosetter.camelcase-underscore"
table="Details_VW" cascade="all">
<cache usage="read-only"/>
<key>
<column name="ColumnA" />
<column name="ColumnB"/>
</key>
<property name="PrincipalId" />
</bag>
</class>
しかし、エラーが発生します-
"名前空間 'urn:nhibernate-mapping-2.2' の要素 'class' には、名前空間に無効な子要素 'bag' があります"
なんでできないの??
ありがとうございました !