<!-- 配置一对多的关系 -->
<set name="providerProducts" inverse="true">
<key column="product_id" />
<one-to-many class="ProviderProduct" />
</set>
<set name="tickerProducts" inverse="true">
<key column="product_id" />
<one-to-many class="TickerProduct" />
</set>
注意不要设置级联,然后表明inverse为true
good lucky!!!

1169

被折叠的 条评论
为什么被折叠?



