org.hibernate.AssertionFailure:null id in com.base.program.entity.X entry (don't flush the Session)
来源:互联网 发布:matlab plot 矩阵 编辑:程序博客网 时间:2024/05/17 20:14
在开发过程中,遇到的异常: org.hibernate.AssertionFailure:null id in com.base.program.entity.X entry (don't flush the Session)
ID本身是已经设置好自增,hibernate的映射文件里边ID也已经设置为 <generator class="native" />
说明不是ID的问题,网上搜索一番后,发现是由于保存的数据里边有非法的参数,如:字段长度超出数据库设定最大值等。
此问题需要自行检查数据的合法性,一一对比入参里边每个字段的值与数据库设定限制是否满足。
参考:http://blog.csdn.net/q576138656/article/details/50731349
0 0
- org.hibernate.AssertionFailure:null id in com.base.program.entity.X entry (don't flush the Session)
- org.hibernate.AssertionFailure: null id in com.base.program.entity.Program entry (don't flush the S
- org.hibernate.AssertionFailure: null id in net.test.entity.test entry (don't flush the Session
- org.hibernate.AssertionFailure: null id in com.fy.domain.GoodPO entry (don't flush the Session after
- org.hibernate.AssertionFailure: null id in com.you.model.User entry (don't flush the Session after a
- org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
- org.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)
- org.hibernate.AssertionFailure: null id in com.thhc.mylegist.bean.AnswerInfo entry (don't flush the
- org.hibernate.AssertionFailure: null id in xxx entry (don't flush the Session after an except)解决方法
- org.hibernate.AssertionFailure: null id in xxx (don't flush the Session after an exception occurs)
- null id in com.hfxt.entity.User entry (don't flush the Session after an exception occurs)
- null id in org.htss.messageservice.pojo.Task entry (don't flush the Session after an exception occur
- null id in entry (don't flush the Session after an exception occurs)
- null id in entry (don't flush the Session after an exception occurs) 解决方法
- null id in entry (don't flush the Session after an exception occurs)
- null id in entry (don't flush the Session after an exception occurs)的错误
- org.hibernate.AssertionFailure: null id don't flus
- null id in XXXentity (don't flush the Session after an exception occurs。。。。(HIbernate 实体类包含关键字)
- sudo: fastboot: command not found ,fastboot自动补全,adb自动补全
- Uncaught Error: [$injector:modulerr]
- 二分查找算法
- typedef函数指针用法
- python爬虫爬取合肥工业大学校园新闻
- org.hibernate.AssertionFailure:null id in com.base.program.entity.X entry (don't flush the Session)
- Springmvc集成jfinal微信 微信服务号开发
- Android 栈溢出攻击—[3]ROP 浅析
- Android 网络传输 加密与验证
- 限制篇(5.2)-03. 网速限制 ❀ 飞塔 (Fortinet) 防火墙
- C++ 与 python 语法 对比
- 关于WPF关闭问题
- SQL在Excel中的应用方法
- 七种跨域方法【1.CROS篇】