关于Error during managed flush [Batch update returned unexpected row count from update [0]; actual row
Posted xiachan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于Error during managed flush [Batch update returned unexpected row count from update [0]; actual row相关的知识,希望对你有一定的参考价值。
控制台报错:
08:07:09.293 [http-bio-8080-exec-2] ERROR org.hibernate.internal.SessionImpl - HHH000346: Error during managed flush [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
查阅许多博客得出了自己的理解,请大家指教:
由于存在隐藏表单进行回显,导致提交时value不是Null,而是"",而我设置的主键生成策略是uuid,所以无法赋值导致错误,解决方法是隐藏表单外面添加了if判断!
修改后为
以上是关于关于Error during managed flush [Batch update returned unexpected row count from update [0]; actual row的主要内容,如果未能解决你的问题,请参考以下文章
关于eclipse的"An internal error occurred during"的错误
学习jvm,关于MAT an internal error occurred during:"Parsing heap dump" from问题
spring整合shiro配置BUG,Tomcat启动不了:Error during artifact deployment. See server log for details
mongodb Sort排序能够支持的最大内存限制为32M Plan executor error during find: FAILURE