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”
<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>