![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate异常
alleni123
这个作者很懒,什么都没留下…
展开
-
org.hibernate.PropertyValueException: not-null property references a null or tra
[size=large][b]org.hibernate.PropertyValueException: not-null property references a null or transient value [/b][/size] [color=red]at org.hibernate.engine.internal.Nullability.checkNullability(Nulla...原创 2013-11-21 15:30:05 · 239 阅读 · 0 评论 -
<Hibernate笔记> 配置文件属性设置
[b][/b] 详情地址: 默认值:false http://alleni123.iteye.com/admin/blogs/1978448 比如多个Student对应一个Team,这里设置为true的时候,运行 Team t=new Team(); Student s1; Student s2; t.setStudents(s1,s2); session.save(t); ...原创 2013-11-21 15:57:08 · 123 阅读 · 0 评论 -
Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPe
[color=red]Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister at org.hibernate.persister.internal.PersisterFactoryImpl...原创 2013-11-23 17:17:31 · 488 阅读 · 0 评论 -
org.hibernate.MappingException: Association references unmapped class:
[color=red]INFO: HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException Exception in thread "main" java.lang.ExceptionInInitiali...原创 2013-11-25 15:41:02 · 204 阅读 · 0 评论 -
Error creating bean with name 'userDao'
[color=red]严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; neste...原创 2013-12-10 20:19:28 · 807 阅读 · 0 评论 -
use either Oracle9iDialect or Oracle10gDialect instead
10:30:16,909 WARN Oracle9Dialect:62 - HHH000063: The Oracle9Dialect dialect has been deprecated; use either Oracle9iDialect or Oracle10gDialect instead 10:30:16,914 WARN OracleDialect:48 - HHH00006...原创 2013-12-16 10:40:54 · 1430 阅读 · 1 评论 -
Hibernate连接Mysql的8小时问题
这个问题估计是用mysql建立网站都会碰到的。 每天早上起来打开网页, 就会看到这个问题。。 原因是mysql有一个time_out全局值, 这个值是28800, 也就是28800秒,正好是8小时。8个小时之后会断开连接, 然后jdbc的Connection就需要重新连接才行。 在mysql中运行:show global variables like 'wait_timeout';就可以...原创 2014-05-03 13:06:20 · 176 阅读 · 0 评论 -
org.hibernate.exception.SQLGrammarException: could not extract ResultSet
今天是SQL语句写错。 String type String hql="select * from t_user where type="+type; 这里应该改为 String hql="select * from t_user where type='"+type+"'";原创 2014-01-21 21:25:39 · 187 阅读 · 0 评论 -
Unable to locate appropriate constructor on class
[color=red]org.hibernate.hql.internal.ast.QuerySyntaxException: Unable to locate appropriate constructor on class [com.lj.core.model.Channel] [select new Channel(c.id, c.name) from com.lj.core.model.C...原创 2014-02-20 00:11:22 · 98 阅读 · 0 评论