`
blueram
  • 浏览: 757300 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论

Batch update returned unexpected row count from up

阅读更多

ERROR [http-8080-Processor22] (BatchingBatcher.java:60) - Exception executing batch: org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1

 

今天出现了这个异常,不知从何下手。

 Hibernate: update t_organization set orgNo=?, name=?, pid=?, description=? where id=?

 

 

hibernate 发送的语句,id=? 当我们传过去的值hibernate在数据库中找不到时就回出现这个异常。很多时候都使用BeanUitls.copyProperties() 而不关注主键,这样就回导致这样的异常。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics