Batch update returned unexpected row count from update [0];

Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

我遇到这个异常出现的问题是由于执行session.update(Object)时,该对象已经被删除导致的。可以修改为不采用hibernate的对象修改方法

猜你喜欢

转载自www.cnblogs.com/Ebird/p/9140025.html
今日推荐