getsession.update(data)
エラーが発生すると、org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException
org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
私は問題を解決してください。
こんにちはNikolay、あなたの貴重なご意見ありがとう私はエンティティクラスをチェックし、テストケースのデータを入力しました。ここでは、テストケースのデータでは、主キーのデータがデータベースのデータと異なり、更新されていませんでした。 –