-
org.hibernate.util.JDBCExceptionReporter,该如何处理
org.hibernate.util.JDBCException'>JDBCExceptionReporter原来在Tomcat里测试都是好好的,后来重新装了下Tomcat,测试就出错了。log文件部分内容如下:>>>>>>>LOG4J<<<<<<<02009-04-2717:54:49,328ERROR[org....
70
热度 -
关于Hibernate连接数据库有关问题
关于Hibernate连接数据库问题我在配置连接池时出错了,请大家给点办法:hibernate.cfg.xml<propertyname="connection.username">hbdzjgxt</property> <propertyname="connection.url">jdbc:sybase:Tds:10.1...
32
热度 -
[求助]spring+hibernate出了错误!
[求助]spring+hibernate出了错误! HTTPStatus500-typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionjavax.servlet.ServletE...
412
热度 -
org.hibernate.MappingException: Error reading resource: com/benben/hibernate/
hibernate3.0的一个问题,研究好几天了??????高手进,技术一般的回答不了所有的方法在main测试没有问题,可以正常输出数据库的结果,可是在jsp里就报如下错误,困扰我好久了,帮忙看看,谢谢%%%%ErrorCreatingSessionFactory%%%%org.hibernate.MappingException:Errorreadingresource:com/benben/h...
526
热度 -
在学习hibernate的时候发现异常
在学习hibernate的时候发现错误我的目录是这样的SimpleHibUsesrcexampleTest.javaUser.javaUser.hbm.xmlhibernate.cfg.xml其中hibernate.cfg.xml中的mappingresource是如下内容<mappingresource="SimpleHibUse/src/example/User.hbm.xml"/>...
14
热度 -
hibernate 地图映射的有关问题
hibernatemap映射的问题映射文件:测试代码:报错:user_addressmap表不存在具体错误:Hibernate:insertintouser(name,gender,age)values(?,?,?)Hibernate:insertintouser_addressMap(userId,key_,address)values(?,?,?)Hibernate:insertintouse...
19
热度 -
spring 3.1 整合hibernate 4.0中遇到的有关问题,求解!多谢
spring3.1整合hibernate4.0中遇到的问题,求解!谢谢。在beans.xml中:?sessionfactory为如下配置:?<beanid="sf"class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"destroy-method="clone&qu...
22
热度 -
hibernate 求助
hibernate求助 我的数据库中有多个表有对应关系,结构如下--学生信息表createtablestudent(stuIdintidentity(1,1)primarykey,stuNamevarchar(20)notnull,subjectIdintnotnull,--引用的Subject表的subjectIdparticularIdintnotnull,--引用...
428
热度 -
hibernate 横竖生成表
hibernate反正生成表 hibernate.cfg.xml"name="code"> <propertyname="hbm2ddl.auto">update</property> packagea; importorg.hibernate.cfg.Configuration; importorg.hibernate.tool.hbm2ddl.SchemaExpor...
306
热度 -
Hibernate 级联剔除
Hibernate级联删除 1.打破关联关系,再删除2.HQL
352
热度 -
SpringMVC+Hibernate搭建的项目中出现连接池被占满整有关问题?
SpringMVC+Hibernate搭建的项目中出现连接池被占满整问题??SpringMVC+Hibernate搭建的项目中出现连接池被占满整个程序死掉啦!我google了好久还是不知道具体怎么搞!!有那为知道啊?帮忙解决一下啊?下面是错误信息……[2012-09-17.20:52:57]WARN-[org.hibernate.util.JDBCException'>JDBCExceptionR...
1201
热度 -
怎么提高hibernate性能
如何提高hibernate性能 ? 在一个拥有单独业务层的应用中,业务层必须在返回之前,为web层“准备”好其所需的数据集合。这就意味着业务层应该载入所有表现层/web层所需的数据,并将这些已实例化完毕的数据返回。通常,应用程序应该为web层所需的每个集合调用Hibernate.initialize()(这个调用必须发生咱session关闭之前);或者使用带有FETCH从句,或FetchMode...
491
热度 -
org.hibernate.exception.GenericJDBCException: could not insert:解决办法
org.hibernate.exception.GenericJDBCException:couldnotinsert:错误信息:15:34:09,937INFOorg.hibernate.tool.hbm2ddl.SchemaUpdate:155-Runninghbm2ddlschemaupdate15:34:09,938INFOorg.hibernate.tool.hbm2ddl.Schema...
6
热度 -
org.xml.sax.SAXParseException: Document root element "hibernate-AnnotationConfig解决方法
org.xml.sax.SAXParseException:Documentrootelement"hibernate-AnnotationConfigorg.xml.sax.SAXParseException:Documentrootelement"hibernate-AnnotationConfiguration",mustmatchDOCTYPEroot&quo...
448
热度 -
初学hibernate,指点一下
初学hibernate,高手请进,指点一下。hibernate.cfg.xml内容如下:<?xmlversion="1.0"encoding="utf-8"?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD//EN"...
205
热度 -
hibernate加了驱动如何还报错
hibernate加了驱动怎么还报错?log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).log4j:WARNPleaseinitializethelog4jsystemproperly.dddddddExceptioninthread"main"hibernate.Hibernat...
248
热度 -
配置hibernate的有关问题
配置hibernate的问题我用的是eclipsesdk3.7.1的版本刚刚下载了一个hibernate3.6.0的压缩件还需要什么同步插件吗怎么把hibernate配置到eclipse中.现在只在SE阶段·.费解啊.现在是连接oracle是那个字符串不会写就想弄个hibernate生成那堆字符串.color='#e78608'>------解决方案-------------------...
77
热度 -
struts2+hibernate4.1.4整合异常
struts2+hibernate4.1.4整合错误StrutsProblemReportStrutshasdetectedanunhandledexception:Messages: 1.cvc-elt.1:Cannotfindthedeclarationofelement'hibernate-configuration'.2.Unabletoperformunmarshallingatline...
2703
热度 -
hibernate出了点莫名其妙的有关问题,请问了
hibernate出了点莫名其妙的问题,请教了我自己写了一个hql的语句,然后放入dao类中,具体代码如下JavacodepublicList<Temprelation>findMaxCount(StringASId){log.debug("findtheMaxCountObject"+ASId+"!");StringqueryString=&q...
9
热度 -
100分!hibernate关系投射
100分!hibernate关系映射!one-to-one:由映射文件自动生成数据库,添加数据的时候,不能两个一起添加,相关文件如下:Idcard.hbm.xml:<!DOCTYPEhibernate-mappingPUBLIC"-//Hibernate/HibernateMappingDTD3.0//EN""http://hibernate.sourceforge.net/hibernat...
68
热度