HibernateException: identifier of an instance of pojo.Order was altered from 23
来源:互联网 发布:复杂网络 周涛 编辑:程序博客网 时间:2024/05/21 15:54
HibernateException: identifier of an instance of pojo.Order was altered from 23 to 8
在项目中,通过hibernate查询了一条数据,然后把主键改掉了,,当时是在action中操作的。
由于是一个线程,在一个session中。所以。。。在hibernate缓存中,该对象还是存在的。所有就报了这个异常。
然后克隆了一个一模一样的对象,然后再做相应的save操作就可以了。
0 0
- HibernateException: identifier of an instance of pojo.Order was altered from 23
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- 异常:identifier of an instance of cn.ebank.pojo.News was altered from 2 to 2;
- identifier of an instance of was altered from to null
- identifier of an instance of XXX was altered from 75
- identifier of an instance of was altered from to null
- 遇到错误 org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X 将int
- HibernateException异常:identifier of an instance of bean was altered from 1 to 1(持久化对象ID变更)
- identifier of an instance ...... altered from ** to **
- 关于identifier of an instance of Object was altered from 6 to 6异常解决问题
- merge对比引发的identifier of an instance of entity was altered from .. to ..报错
- identifier of an instance of com.you.hibernate.model.TStudentInfo was altered from 6 to 7
- identifier of an instance was altered from XXXX to XXXX解决
- identifier of an instance ... altered from num1 to num2
- EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0
- identifier of an instance of com.jh.oa.bpm.model.JhBpmFormdata was altered from 266 to 267
- Spring定时任务的实现
- frame 页面缓存
- oracle sql工具语句积累
- Jquery修改input name修改不了
- Dubbo基础篇_06_Dubbo监控中心的介绍与简易监控中心的安装
- HibernateException: identifier of an instance of pojo.Order was altered from 23
- 字符编解码的故事(ASCII,ANSI,Unicode,Utf-8区别)
- 安装oracle数据库字符集编码
- 常用git命令
- servlet request.setParameters 方法 自创
- listview 局部刷新
- xss filter
- Android属性动画
- button type,input name 修改