今天遇到的很恼火的问题identifier of an instance of jp.co.gecj.ito.model.TIipitomanage was altered from 2 to 1
来源:互联网 发布:大淘客和淘宝联盟 编辑:程序博客网 时间:2024/05/29 08:13
从上午到下午一直在解决这个问题,具体原因查Google有很多方法却都不适合,大概的意思是前后的类型不配合,现在引用的从 国外的论坛中发现的大概原因
I just resolved this problem, the issue was that I had the wrong data type for my primary key in the entity's .hbm.xml file.
The underlying database table (SQL Server) has a primary key column of bigint. This column is also an identity field.
My original mapping config looked like this:
with this configuration I received the exception
identifier of an instance of ...[class name]... was altered from 1670012 to 1670012
I modified the mapping config to be:
and it works now.
- 今天遇到的很恼火的问题identifier of an instance of jp.co.gecj.ito.model.TIipitomanage was altered from 2 to 1
- identifier of an instance of was altered from to null
- identifier of an instance of was altered from to null
- 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
- SSH项目报identifier of an instance of xxx was altered from N to 1的解决方案
- EJB3 Exception:identifier of an instance of net.model.entity.Role was altered from 2 to 0
- identifier of an instance ...... altered from ** to **
- 异常:identifier of an instance of cn.ebank.pojo.News was altered from 2 to 2;
- identifier of an instance of bean was altered from 1 to 2(持久化对象ID变更)
- identifier of an instance of com.jh.oa.bpm.model.JhBpmFormdata was altered from 266 to 267
- 缓存identifier of an instance of com.topsec.tss.web.model.event.Event was altered from … to …
- identifier of an instance of XXX was altered from 75
- 遇到错误 org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X 将int
- org.hibernate.HibernateException: identifier of an instance of XXX was altered from X to X
- 关于identifier of an instance of Object was altered from 6 to 6异常解决问题
- 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
- flv视频无法播放,显示video not found
- Getting Contiguous Space Currently in the Shared Pool(Oracle10g Tuning Technology)
- __asm__ __volatile__ ("" : : : "memory")
- 怎样当您按下回车键时使您的光标移到下一个文本输入框
- 数据库设计流程
- 今天遇到的很恼火的问题identifier of an instance of jp.co.gecj.ito.model.TIipitomanage was altered from 2 to 1
- 最新服务器测试方法详细解析
- 郁闷???
- POJ 2362 POJ1011解题报告
- GameCanvas.flushGraphics
- AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts错误
- 没完成的东西
- 女人的10大恶习
- strcat strcpy strcmp strlen