多对一可以用property-ref,
一对多呢?怎么配置?

解决方案 »

  1.   

      <set name="patchLists" inverse="true">
                <key>
                    <column name="asset_dn" length="50" not-null="true" />
                </key>
                <one-to-many class="model.po.PatchList" />
            </set>   <many-to-one name="asset" class="model.po.Asset" fetch="select">
                <column name="asset_dn" length="50" not-null="true" />
            </many-to-one>