1对1关联,保存对象,不更新关联的对象
设置 cascade=“none”
<many-to-one name="proType" class="com.gwideal.jxwpgsh.pojo.SysDictionary" lazy="false" fetch="select" cascade="none" not-found="ignore">
<column name="pro_type" not-null="false" unique="true"/>
</many-to-one>
本文介绍了在对象关系映射中如何使用1对1关联,并设置了cascade为none以避免更新关联对象。通过具体的代码示例展示了如何配置这种关联。
2114

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



