org.hibernate.StaleStateException:Batch update returned unexpected row count from update[0]

项目中偶然碰到了此Bug,研究了下发现是因为马虎,直接复制注解造成的:

具体错误之处如下:

表中数据为假删除,通过设置删除字段作删除操作,结果“update”后面跟得表名出错了,造成更新式删除异常!

猜你喜欢

转载自blog.csdn.net/yssa1125001/article/details/86309974