【发布时间】:2018-02-25 22:05:29
【问题描述】:
我们正在使用休眠来更新表的值然后我得到以下错误
org.hibernate.engine.jdbc.spi.SqlExceptionHelper | Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'dev.TASKS' directly or indirectly in database 'DEV' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.
我们使用 hibernate 4.3.11 和 SQLServer 2014 作为我们的数据库。
如何解决这个错误?
【问题讨论】:
标签: java sql-server hibernate jpa transactions