Hibernate Delete Error: Batch Update Returned Unexpected Row Count

前端 未结 8 1758
余生分开走
余生分开走 2020-12-04 16:44

I wrote this method below that is suppose to delete a member record from the database. But when I use it in my servlet it returns an error.

MemberDao Class

8条回答
  •  情歌与酒
    2020-12-04 17:25

    i recently experienced this and what happened was that i used the update method and it was throwing an exception because there was no existing record. I changed the method to saveOrUpdate. It worked.

提交回复
热议问题