原文: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