小弟在使用hibernate的one-to-many映射时出现个问题:batch update returned unexpected row count from update[0];actual row count:0;expected:1。
hbm.xml的配置如下:
parent.hbm.xml:
<set name="children" inverse="ture" lazy="true" fetch="select"> 
     <key column="OBJFK" />
     <one-to-many class="child" />
</set>child.hbm.xml:
<many-to-one name="parent_id" column="OBJFK" class="child">
</many-to-one>这个错误是在连接sqlserver数据修改parent实体时引起的,而连接oracle数据库就不会,有没有办法在执行修改parent实体时不执行更新child的操作?请大家给点意见。