hibernate Row was updated or deleted by another transaction
来源:互联网 发布:ensp交换机端口 编辑:程序博客网 时间:2024/06/06 04:58
在开发免费ERP 2BizBox 的过程中,更新一个员工的时候,hibernate出现了如下错误:
Row was updated or deleted by another transaction 。
最后通过排查是由于用于记录数据版本的字段version 为NULL,正常使用不可能为NULL,可能是由于直接操作数据库造成的, 通过如下语句,把NULL 改成0,OK了。
update employee set version = 0 where version is NULL;
- hibernate Row was updated or deleted by another transaction
- Row was updated or deleted by another transaction
- org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsav
- org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsav
- org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction
- 使用Hibernate时Row was updated or deleted by another transaction的解决方案
- org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorre
- Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
- Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)
- Row was updated or deleted by another transaction 异常原因及处理
- Row was updated or deleted by another transaction 异常原因及处理
- Row was updated or deleted by another transaction 异常原因及处理
- hibernate异常 org.hibernate.StaleObjectStateException: Row was updated or deleted
- hibernate异常 org.hibernate.StaleObjectStateException: Row was updated or deleted .
- The row value(s) updated or deleted either do not make the row unique or they alter multiple rows.
- Repetitive Error: Updated by Another User (3,1)
- 解决hibernate 删除异常: deleted object would be re-saved by cascade (remove deleted ob
- hibernate 删除异常:deleted object would be re-saved by cascade (remove deleted object from
- 关于socket编程的一点小思考
- 敏捷软件开发模型--SCRUM
- MFC View类响应ON_UPDATE_COMMAND_UI
- 【Sqlserver】总结 - 2005版本还原备份
- 详解堆栈的几种实现方法——C语言版
- hibernate Row was updated or deleted by another transaction
- 如何写出很牛的代码,提高你的代码质量?
- __THROW是什么东西?
- HTML 5 教程(一) - 简介
- Asp.net Ajax 客户端编程—面向对象
- IE9的新功能
- spring依赖注入(二)之 构造注入
- DB2数据库的在线备份步骤
- android的调试工具集