Tag: Batch预览模式: 普通 | 列表
今天在做自身关联的时候遇到的问题:
Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1解决方案

阻力前提 :当有张表同一个字段管理2张表是,今天用one-to-moeny试了一下,
开始配置one-to-many时,是不能同时写入数据;
后来《Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1》不能同时跟新;找了资料大概理解里面的原理,但不是完全明白哦!还需要继续look@@;
xml中set配置:
<set name="offerd" lazy="false" inverse="false" outer-join="false" cascade="all">             <key column="offerID" />             <one-to-many class="OfferDetail"/>  </set>

查看更多...

Tags: Batch up&amp;#100;ate manay-to-one

分类:Hibernate | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1890