Hibernate - Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1

前端 未结 30 3833
夕颜
夕颜 2020-11-28 20:47

I get following hibernate error. I am able to identify the function which causes the issue. Unfortunately there are several DB calls in the function. I am unable to find the

30条回答
  •  一整个雨季
    2020-11-28 21:24

    I also came across the same challenge. In my case I was updating an object which was not even existing, using hibernateTemplate.

    Actually in my application I was getting a DB object to update. And while updating its values, I also updated its ID by mistake, and went ahead to update it and came across the said error.

    I am using hibernateTemplate for CRUD operations.

提交回复
热议问题