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

用Hibernate保存对象的时候,Eclipse后台提示出现这个错误: Batch update returned unexpected row count from update actual row count: expected: ,原因是给id设置了自动生成策略,但是却给这个对象的id手动设置了值,Hibernate在其自身的缓存中根据此id找不到对象,就会报这个错。 解决的方法很简单 ...

2020-05-20 07:31 0 2103 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM