org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1

batch:批量

unexpected:意想不到的

actual:实际

expected:预期

报错原因:使用Hibernate的update进行更新时,对象的主键值为空。

posted @ 2016-08-24 15:20  一步一个脚印,坚持  阅读(1558)  评论(0编辑  收藏  举报