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的时候进行了添加操作,发生错误。
问题原因:主键自动增加,执行添加操作的时候设置了主键的值,导致错误。
解决办法:去除主键的值设置,或者修改主键自增长。
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
问题发现:在学习hibernate的时候进行了添加操作,发生错误。
问题原因:主键自动增加,执行添加操作的时候设置了主键的值,导致错误。
解决办法:去除主键的值设置,或者修改主键自增长。
相关文章推荐
- 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
- org.hibernate.StaleStateException: 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
- 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
- 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
- Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
- 20.org.hibernate.StaleStateException: 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
- Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
- Batch update returned unexpected row count from update; actual row count: 0; expected: 1
- 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
- Hibernate:Batch update returned unexpected row count from update [0]; actual row count: 0; expected:
- 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
- Batch update returned unexpected row count from update [0]; actual row count: 2; expected: 1;
- spring.net nhibernate 不一定是自增变量,也可能是触发器 Batch update returned unexpected row count from update; actual row count: 2; expected: 1