报错:
Batch update returned unexpected row count from update; actual row count: 0; expected: 16
翻译:
批量更新从更新返回了意外的行数; 实际行数:0; 预期:16
原因:
hibernate对对象持久化后,对象更改了,在事务提交时,会把更改的对象持久化到数据库,而在持久化到数据库之前,这条数据已经被删除,故导致以上问题。
删除的时候从数据库中查找出来再删
Batch update returned unexpected row count from update
最新推荐文章于 2023-08-04 10:12:19 发布