Batch update returned unexpected row count from update :0 actural row count 0, excepted :1
2012-12-10 21:50
375 查看
使用Hibernate的Update方法的时候出现这个错误,错误提示很明显,期望返回的结果是1一条,结果是0。并没有更新成功。
因为有时候在jsp中,没有设置数据id的隐藏域(一般数据库的id并不会展示到页面),在struts的Action中接收到页面的数据,这样id默认是0,但是数据库中并没有id为0的这个数据,所以报错。
因为有时候在jsp中,没有设置数据id的隐藏域(一般数据库的id并不会展示到页面),在struts的Action中接收到页面的数据,这样id默认是0,但是数据库中并没有id为0的这个数据,所以报错。
相关文章推荐
- 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
- EXTJs错误:Batch update returned unexpected row count from update [0]; actual row count: 0;
- 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: 2; expected: 1;
- 异常:Batch update returned unexpected row count from update [0]; actual row count: 0;
- Batch update returned unexpected row count from update; actual row count: 0; expected: 1
- spring.net nhibernate 不一定是自增变量,也可能是触发器 Batch update returned unexpected row count from update; actual row count: 2; expected: 1
- Batch update returned unexpected row count from update [0]; actual row count: 0;
- 关于Hibernate的 Batch update returned unexpected row count from update异常
- Hibernate 报错:Batch update returned unexpected row count from update [0]; actual row count
- 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问题的解法
- Hibernate——org.hibernate.StaleStateException: Batch update returned unexpected row count from update
- Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
- 关于Hibernate的 Batch update returned unexpected row count from update异常
- Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
- Batch update returned unexpected row count from update [0]