您的位置:首页 > 数据库

Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

2016-11-08 15:58 489 查看
个人错误记录0.0.1

Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

问题发现:在学习hibernate的时候进行了添加操作,发生错误。

问题原因:主键自动增加,执行添加操作的时候设置了主键的值,导致错误。

解决办法:去除主键的值设置,或者修改主键自增长。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  BUG 数据库 hibernate
相关文章推荐