org.hibernate.AssertionFailure: null id in com.base.program.entity.Program entry (don't flush the S
来源:互联网 发布:阿里云 oss sdk 编辑:程序博客网 时间:2024/06/04 17:51
爬取网络数据插入数据库时突然报这个错,看到null id以为是自增长id出现了null,但是前面测试时都没问题的。网上查了下资料,发现是字段长度不够长的问题,在数据库中将其中两个字段的字段设置大点就OK了。
或者在java文件中添加annotation注解,将其设为text类型,如下:
@Type(type="text")public String getActor(){return actor;}
OK,解决问题。
0 0
- org.hibernate.AssertionFailure: null id in com.base.program.entity.Program entry (don't flush the S
- org.hibernate.AssertionFailure:null id in com.base.program.entity.X entry (don't flush the Session)
- org.hibernate.AssertionFailure: null id in net.test.entity.test entry (don't flush the Session
- org.hibernate.AssertionFailure: null id in com.thhc.mylegist.bean.AnswerInfo entry (don't flush the
- 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 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)
- org.hibernate.AssertionFailure: null id don't flus
- 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
- WebLogic忘记密码解决方法
- 机器视觉开源处理库汇总
- RFC 3550 中文版
- HDU 2795 Billboard(线段树)
- ubuntu 14.04 LTS error: insufficient permissions for device(设备权限不足)
- org.hibernate.AssertionFailure: null id in com.base.program.entity.Program entry (don't flush the S
- 远程控制一二三
- yum 和rpm的区别
- 磁力传感器工作原理
- 局域网机器中如何访问VMware内的虚拟机
- Add Two Nums
- runtime 类和对象的使用和基本的数据结构
- Red Hat上安装Eclipse经验总结
- Java7、Java8新特性了解