原文:org.hibernate.StaleStateException: 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 actual row count: expected: 错误。 原因分析:我在更新数据时,显式地使用了id的setId 方法为其指定值。但是我的实体类的id指定了主键 ...

2017-10-18 16:21 0 3339 推荐指数:

查看详情

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