-
求达人解决hibernate的版本使用有关问题
求达人解决hibernate的版本使用问题同一个最简单的hibernate程序,测试程序直接就直接写了一个最简单的测试类,,student只有简单的3个属性idagename3个属性以及他们的get/set方法用的jar包都是required里的6个jar包和hibernate3jar包以及对应的slf4j的jar包一共8个XML一共2个一个hibernate.cfg.xml和Student.hb...
79
热度 -
hibernate报错
求助hibernate报错小弟在最近在学hibernate,写了个插入方法,严重报错,却不知道错在哪,求助大哥大姐...报错内容:Javacode四月03,201212:58:15下午org.hibernate.annotations.common.Version<clinit>INFO:HCANN000001:HibernateCommonsAnnotations{4.0.1.Fin...
25
热度 -
hibernate 增删节查和遍历(转)
hibernate增删改查和遍历(转) packagecn.itcast.primer;importjava.util.List;importorg.hibernate.Query;importorg.hibernate.Session;importorg.hibernate.SessionFactory;importorg.hibernate.Transaction;importorg.hibe...
230
热度 -
hibernate自动建表失败解决思路
hibernate自动建表失败配置文件:<beanid="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <propertyname="driverClassName"value="com.mysql.jdbc.Driver"/> <prop...
14
热度 -
Hibernate使用Ehcache二级缓存时的错误NoCacheRegionFactoryAvailableException
Hibernate使用Ehcache二级缓存时的异常NoCacheRegionFactoryAvailableExceptionHibernate版本4.1.2Encache版本2.4.3异常信息:[main]ERRORcom.ryan.HibernateUtil-InitialSessionFactorycreationfailed:org.hibernate.cache.NoCacheRegi...
74
热度 -
Hibernate框架中,log4j错误有关问题。求各位大神帮帮忙
Hibernate框架中,log4j异常问题。求各位大神帮帮忙!log4j:ERRORFailedtoexcutesqljava.sql.SQLException:Nosuitabledriverfoundforjdbc:oracle:thin:@90.0.12.20:1521:ORCL atjava.sql.DriverManager.getConnection(DriverManager.ja...
6371
热度 -
:Hibernate 影射 SQL2000 数据库表 的有关问题
求助:Hibernate影射SQL2000数据库表的问题下面是异常,但是同样的影射,自动生成的DAO方法,连接mysql就没有问题,sql200就出现下面的问题,还请大虾们指点指点。(sql2000,所需的驱动都意见加入了。)Exceptioninthread"main"hibernate.exception.GenericJDBCException'>org.hibernat...
644
热度 -
hibernate主键生成策略native有关问题
hibernate主键生成策略native问题我用的是mysql数据库,生成策略是increment时一切正常,但如果换做native就老说插入语句主键不能为空xml配置:<hibernate-mappingpackage="domain"> <classname="Student"table="Student">...
153
热度 -
hibernate启动报错(,大神来)
hibernate启动报错(在线等,大神来)我用tomcat启动工程时,当加载hibernate时发生了如下的错误。我用的hibernate是3.6.10的版本2013-03-1510:21:55,824(Version.java:37)HibernateCommonsAnnotations3.2.0.Final2013-03-1510:21:55,839(Environment.java:603...
144
热度 -
hibernate中两个级联表,一个student表跟一个book表,student表中有主键id,是book表中的外键;在用Student的类无法得到set集
hibernate中两个级联表,一个student表和一个book表,student表中有主键id,是book表中的外键;在用Student的类无法得到set集查询的代码 Sessionsession=bo.HibernateSessionFactory.getSession(); Sessionsession=bo.HibernateSessionFactory.getSession();...
92
热度 -
hibernate-3.2.5.ga 报java.lang.ExceptionInInitializerError是什么原因
hibernate-3.2.5.ga报java.lang.ExceptionInInitializerError是什么原因?各位大侠,这几天按照网上的介绍,在Eclpse环境里面,作了个简单的Hibernate例子,运行,但是报错:java.lang.ExceptionInInitializerError,具体的代码以及配置文件如下:hibernate.cfg.xml配置内容:<?xmlve...
1081
热度 -
用的 是hibernate框架现在出了点有关问题
用的是hibernate框架现在出了点问题代码先行功能:加入一个sno=1cno=1的数据到sc表中packagestu.course.com;importjava.io.IOException;importjava.io.PrintWriter;importjavax.servlet.ServletException;importjavax.servlet.annotation.WebServl...
74
热度 -
初学hibernate碰到的有关问题!
初学hibernate碰到的问题!!!如题,我的问题并不复杂,就是连不上数据库。我用的是hibernate2.1去连Oracle10g,没用什么jbuilder或eclipse,用最简单的办法在我的tomcat里部署了一个应用。可是最后的jsp页面报错:net.sf.hibernate.exception.GenericJDBCException:Cannotopenconnection很郁闷!我...
125
热度 -
:配置项目时出现错误
求助:配置项目时出现异常!启动TOMCAT时,出现如下异常,请高手帮忙解决.多谢!!2007-07-0313:17:36,187ERRORorg.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:130)[org.hibernate.proxy.BasicLazyInitializer]-&...
20
热度 -
hibernate当地sql查询,相同列名的字段
hibernate本地sql查询,相同列名的字段selectu.name,p.namefromuseruleftjoinpassengerponp.user_id=u.id会出现前一列覆盖后一列的情况如果selectu.nameuname,p.namepnamefromuseruleftjoinpassengerponp.user_id=u.id在数据库中查询正确,hibernate查询会报WAR...
370
热度 -
hibernate 数据持久化后,原有数据被清除开
hibernate数据持久化后,原有数据被清除了。hibernate数据持久化后,原有数据被清除了。hibernate初学者,请各位指教。User.javapackagecom.asm.hibernate.domain;importjava.util.Date;publicclassUser{ privateintid; privateStringuser_name; privateDatebir...
194
热度 -
Hibernate框架中配置数据源示范
Hibernate框架中配置数据源示例 数据库的连接配置很简单,在项目的src目录下建立一个xml文件,名为hibernate.cfg.xml。这个文件的内容为:<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfiguration...
198
热度 -
org.hibernate.exception.GenericJDBCException: could not execute query,
org.hibernate.exception.GenericJDBCException:couldnotexecutequery,是怎么回事啊?请高手指点运行后出现如下问题:HTTPStatus500---------------------------------------------typeExceptionreportmessagedescriptionTheserverencounte...
89
热度 -
Hibernate Cannot convert value '0000-00-00 00:00:00' from 有关问题解决
HibernateCannotconvertvalue'0000-00-0000:00:00'from问题解决问题显示:17:24:09.062ERRORorg.hibernate.util.JDBCException'>JDBCExceptionReporter-Cannotconvertvalue'0000-00-0000:00:00'fromcolumn5toTIMEST...
3161
热度 -
多谢大家帮小弟我看看这是什么错~小弟刚刚学习hibernate
谢谢大家帮我看看这是什么错~!小弟刚刚学习hibernate[WARN]2007-05-3011:46:17org.hibernate.cache.EhCacheProvider-Couldnotfindconfiguration[org.jbpm.graph.def.Node];usingdefaults.[ERROR]2007-05-3011:46:17net.sf.ehcache.store...
47
热度