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的对象修改方法

posted on 2018-06-05 15:29  菜鸟你够了  阅读(520)  评论(0编辑  收藏  举报