个人错误记录0.0.1
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
问题发现:在学习hibernate的时候进行了添加操作,发生错误。
问题原因:主键自动增加,执行添加操作的时候设置了主键的值,导致错误。
解决办法:去除主键的值设置,或者修改主键自增长。
个人错误记录0.0.1
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
问题发现:在学习hibernate的时候进行了添加操作,发生错误。
问题原因:主键自动增加,执行添加操作的时候设置了主键的值,导致错误。
解决办法:去除主键的值设置,或者修改主键自增长。