您的位置:首页 > 其它

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

2016-05-24 18:51 453 查看
把开发过程中碰到的BUG累积下来也是一笔财富。
Batch update returned unexpected row count
from update [0]; actual row count: 0; expected: 1
不注意的话,还真的有点无所适从,Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1这个异常是由于主键设置为自增长,而在我们插入记录的时候设置了ID的值导致的。
Hibernate 注释@OneToOne 建立表关联实例
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: