
Hibernate错误记录
文章平均质量分 82
iteye_5823
这个作者很懒,什么都没留下…
展开
-
c3p0.max_statements = 0 GooGooStatementCache Problem with checked-in Statement,
c3p0.max_statements不设置等于0时报如下错误 INFO 2010-07-23 16:29:38,490 [com.mchange.v2.c3p0.stmt.GooGooStatementCache] - Problem with checked-in Statement, discarding. java.lang.NullPointerException ...原创 2010-08-25 10:11:50 · 901 阅读 · 0 评论 -
Hibernate Data too long for column 'name' at row 1 已解决!【原创】
Data truncation: Data too long for column 'name' at row 1当日志无情的抛出这条鬼东西的时候,坐在电脑前的可能还没有贴心女友的你正郁闷着,正后悔当初为什么会选择程序员这条该死的不归路!没事!让我来拯救IT界!说是长度过长,可是看表设计就知道长短了,我还是觉得是中文乱码或说是编码的问题,有一招万试万灵的方法,可以用来解决中文乱码问题,...2010-12-11 00:27:06 · 920 阅读 · 0 评论 -
detached entity passed to persist: 问题的解决[原创]
这个问题很简答!看了网上很多教程,大多唧唧歪歪满篇高深的道理理论!垃圾!知道那么多有鸟用啊!转B!直接告诉你们原因和解决的办法:原因:你用hibernate来自增加主键插入,但是在提交时候这个主键却已经有值(为什么有值是自己的问题)解决:在提交之前情况你的pojo类的主键值为空就行! ...2010-12-12 16:48:00 · 969 阅读 · 0 评论 -
c3p0.max_statements = 0 GooGooStatementCache Problem with checked-in Statement,
c3p0.max_statements不设置等于0时报如下错误 INFO 2010-07-23 16:29:38,490 [com.mchange.v2.c3p0.stmt.GooGooStatementCache] - Problem with checked-in Statement, discarding. java.lang.NullPointerException...原创 2010-12-12 22:19:02 · 612 阅读 · 0 评论 -
hibernate插入实体出现could not get next sequence value
明明很简单,一个hibernate的save而已。却出现了could not get next sequence value,导致插入不成功。后来经过分析。知道原来我把一个健设置为native ,在使用native的时候,hibernate默认会去找oracle中的hibernate_sequence序列。如果oracle中没有该序列,连oracle数据库会报错!所以在数据库里面加了这个seq...2012-01-05 09:10:25 · 1188 阅读 · 0 评论 -
Oracle连接池错误 Cannot create PoolableConnectionFactory(Io 异常: The Network Adapter c
转的:Cannot create PoolableConnectionFactory(Io 异常: The Network Adapter could not establish the connection )最近使用ORACLE数据库作项目,创建连接池的时候出现Cannot create PoolableConnectionFactory(Io 异常: The Network ...原创 2011-01-25 16:19:34 · 1608 阅读 · 0 评论