有一个著名的例外情况:
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [my.Entity#123456]
当“行被另一个事务更新或删除”时,这是一个非常熟悉的情况。
但是什么是另一种可能性 - “未保存值映射不正确”?如何有意地重现这种情况?
Grails 2.2.0
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [my.Entity#123456]
当“行被另一个事务更新或删除”时,这是一个非常熟悉的情况。
但是什么是另一种可能性 - “未保存值映射不正确”?如何有意地重现这种情况?
Grails 2.2.0