-
今天在做级联删除的时候出现org.hibernate.PropertyValueException异常
今天在做级联删除的时候出现org.hibernate.PropertyValueException错误2013-1-1817:12:59org.apache.catalina.core.StandardWrapperValveinvoke 严重:Servlet.service()forservletdefaultthrewexception org.hibernate.PropertyValueE...
451
热度 -
hibernate4.0 org.hibernate.cach这个类,该怎么处理
hibernate4.0org.hibernate.cach这个类怎么找都找不到呀color='#e78608'>------解决方案--------------------------------------------------------4.0倒没有用过。。3.0的应该在hibernate3.0.jar中。。。
1437
热度 -
weblogic+hibernate启动错误
weblogic+hibernate启动异常 我的项目架构是Struts+spring+hibernate.在Tomcat6.0中运行正常, 然后部署到Weblogic10.3上报如上错误。 原因:从网上获知,weblogic.jar中已经有了一个antlr.jar的版本,导致应用中hibernate3.jar中用到的antlr.jar不能找到,导致异常。解决方法:可以按下面设置使用hibern...
402
热度 -
Hibernate转HQL为SQL的有关问题还是bug
Hibernate转HQL为SQL的问题还是bugStringhql="fromTUmpSendmsgwhere(dateint>=:yesterdayor((dateint=:dayBeforeYesterdayandsendtime>=:now)))andsendflagin('1','3','4')andsendnum<repnumandretryflag='1'";转成S...
102
热度 -
org.hibernate.MappingException: Unknown entity: java.lang.String
Hibernate中删除多条记录怎么操作?出错了!/** *根据选择的id删除多条记录*/ publicvoiddeleteBySelectId(Stringid){//id可以打印 System.out.println("id:::::::"+id);//(id的值为:1,2,34,55,66,77,88,......)//是根据用户选择的多个id一次删除多条记录 get...
86
热度 -
hql 用了order by+rownum ORA-00918: 未明确定义列 指教!
hql用了orderby+rownumORA-00918:未明确定义列在线等指教!!!2011-10-2708:41:52,625DEBUG[org.hibernate.hql.ast.QueryTranslatorImpl]-HQL:fromssh2.wq.fn.entity.Questionqorderbyq.answernumdesc2011-10-2708:41:52,625DEBUG[o...
968
热度 -
【hibernate有关问题】session.createQuery(hql)该方法阻塞,求解
【hibernate问题】session.createQuery(hql)该方法阻塞,求解!今天遇到的一个新奇问题,研究了一下午还是没有研究出来。。特发给哥们儿帮看看。。如下:public<E>EgetDataCountwithHQL(finalStringhql,finalObject...params){ return(E)this.getHibernateTemplate()....
51
热度 -
org.hibernate.exception.SQLGrammarException: could not execute query异常
org.hibernate.exception.SQLGrammarException:couldnotexecutequery错误原因是因为我的mysql数据库的名字是数字,更改为英文字符就可以!
11
热度 -
Hibernate有关问题(org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update)
请教高手Hibernate问题(org.hibernate.exception.SQLGrammarException'>org.hibernate.exception.SQLGrammarException:CouldnotexecuteJDBCbatchupdate)提示的错误内容如下:Hibernate:selectmax(ID)fromTGS_ENTERPRISE_COUNTINFOHib...
350
热度 -
org.hibernate.TransactionException: Transaction not successfully started
紧急求助!这是我使用hibernate往MySQL中注入数据时出现的错误,我是新手,求教怎么解决呢org.hibernate.exception.JDBCConnectionException'>org.hibernate.exception.JDBCConnectionException:Cannotopenconnection atorg.hibernate.exception.SQLStat...
686
热度 -
Caused by: org.hibernate.PropertyNotFoundException: Could not find
SSH项目运行报:Couldnotfindagetterforpidinclass...在线等!!!!这个是运行部分错误信息:[ERROR]2011-09-0515:58:25,991org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3799)Exceptionsendingcontextinit...
6787
热度 -
hql hibernate 有关问题 有关between and
hqlhibernate问题有关betweenand请问,类c中有min和max,以经持久化mysql了,用hql如何比较找出integral的范围,就是integral>=min,integral<=max;color='#e78608'>------解决方案--------------------fromTablewhereintegralbetweenminandmax;colo...
487
热度 -
Hibernate一对多对的查询HQL有关问题
Hibernate一对多对的查询HQL问题今天做项目碰到一个问题:现有OrderTicketJingdian三个实体类,分别对应t_order,t_ticket,t_jingdian三张表类Order里面有ticketId类Ticket里面有List<Jingdian>类Jingdian里面有memo请问一下,通过Jingdian里面的memo属性来查询订单的HQL语句应该怎么写?因为...
3669
热度 -
org.hibernate.MappingException: Unknown entity解决办法
org.hibernate.MappingException'>org.hibernate.MappingException:UnknownentityUnknownentity:com.tongchuang.bean.Mood$$EnhancerByCGLIB$$43329f39Unknownentity:com.tongchuang.bean.Mood$$EnhancerByCGLIB$$43...
635
热度 -
!org.hibernate.TransactionException: Transaction not successfully started
求助!org.hibernate.TransactionException'>org.hibernate.TransactionException:Transactionnotsuccessfullystarted之前使用测试还好好的今天一试莫名出现问题!packageorg.whatisjava.dao;importorg.hibernate.HibernateException'>org.hi...
5133
热度 -
on org.hibernate.exception.GenericJDBCException: could not execute query
使用proxool连接池几个小时之后总是会报错!环境:tomcat6.0+proxool-0.9.01+hibernate3.1+mysql5.0请大侠解决!!proxool.xml:XMLcode<?xmlversion="1.0"encoding="UTF-8"?><something-else-entirely><prox...
47
热度 -
2.could not insert: [xxx.entity.User]; nested exception is org.hibernate.exception
二.couldnotinsert:[xxx.entity.User];nestedexceptionisorg.hibernate.exception.html">org.springframework.dao.DataIntegrityViolationException:couldnotinsert:[xxx.entity.User];nestedexceptionisorg.hibernat...
1044
热度 -
学习hibernate报:Exception in thread "main" org.hibernate.Mapping错误Exception
学习hibernate报:Exceptioninthread"main"org.hibernate.Mapping异常Exception最近自学hibernate框架,J2SE项目+ORACLE数据库,报出下面异常,求解决:Exceptioninthread"main"org.hibernate.MappingException'>org.hibernate...
42
热度 -
干SSH项目出现:org.hibernate.MappingException: Unknown entity
做SSH项目出现:org.hibernate.MappingException'>org.hibernate.MappingException:Unknownentity:最近学习SSH出现这个情况,也比较奇怪,我用junit测试的没问题,但提交的表单数据就有问题出现org.hibernate.MappingException:Unknownentity:异常:异常信息:stujiating1:c...
47
热度 -
你们觉着HQL真的那么好用吗?Hibernate和ibatis有感
你们觉得HQL真的那么好用吗?Hibernate和ibatis有感Hibernate貌似声势非常浩大,但我一直不是很习惯其HQL,既然有SQL,为何要搞个HQL。作为和各种关系数据库相处多年的开发人员,个人对各种数据库的sql并不陌生.无论采用什么数据库,首先都是要设计表,然后设计各种增删查改的sql和存储过程,HQL貌似能屏蔽不同数据库SQL差异,但对数据库精细的访问和性能优化方面能达到数据库相...
144
热度