-
J2EE连接Oracle的一个有关问题
J2EE连接Oracle的一个问题因为公司程序经常出一个连接池不够用的情况,我现在做了一个测试:我在Weblogic中设置了最大连接数为:1然后我登录系统没有问题,但是我刷新一下只有就出现这个问题了。程序首页有一个每几秒刷新的公告功能,这个公告数据是查询出来的下面是我刷新出的问题:15:46:23,546ERRORJDBCException'>JDBCExceptionReporter:46-we...
83
热度 -
求教,Hibernate插入数据的有关问题
求教,Hibernate插入数据的问题想往数据库里插数据,写了个bean配完hibernate.cfg.xml和hbm.xml后测试了下,一排错误,心都碎了。。。求各位大侠帮小弟我找找哪里出了错,感激不尽啊-----------------------------------------------JavaBean-->User-->里面有id,username和password内容我...
113
热度 -
hibernate 配置文件在SQL下不能生成表
hibernate配置文件在SQL上不能生成表22:12:13,031DEBUGSchemaExport:303-droptableUser22:12:13,046DEBUGSchemaExport:288-Unsuccessful:droptableUser22:12:13,046DEBUGSchemaExport:289-[Microsoft][SQLServer2000DriverforJD...
13
热度 -
用hibernate的Criteria查询排序出错,该怎么处理
用hibernate的Criteria查询排序出错Criteriacriteria=getSession().createCriteria(Test.class);criteria.add(Expression.eq("path",path));criteria.addOrder(Order.asc("date"));Listlist=criteria.li...
286
热度 -
hibernate 级联对象json化出有关问题!
hibernate级联对象json化出问题!!!将hibernate级联对象转成json的时候,出现那个net.sf.json.JSONException'>net.sf.json.JSONException:Thereisacycleinthehierarchy异常。。我的是双向关联,请问下应该肿么做?我不想把那些关联的表过滤掉,因为我要用到。我以前也遇到过这个问题!这个是我以前发的帖子:htt...
6892
热度 -
hibernate查询的有关问题 java2000_net
hibernate查询的问题java2000_netselect*fromproductInfoaspJOINbrandInfoasbonp.brand_Idin(selectb.brand_IdfrombrandInfowhereb.brand_namelike'%雅%')这个是数据库中用sql写的可以正确执行转化为下面hqlsql1的语句就会报错这里是错误信息:Causedby:line1:1...
31
热度 -
spring hibernate 链接sqlserver 2005 2008 多范例情况
springhibernate链接sqlserver20052008多实例情况以前一直用oracle作为首选的数据库,最近一个小软件,打算用sqlserver服务器上装了sqlserver2000,2005,2008,3种数据库,多实例,折腾了很久才解决具体方法是:删除sqljdbc4.jar包下面的meta-info文件夹的3个定义文件。最后贴上链接成功的配置语句:hibernate.diale...
20
热度 -
hibernate3.6.7中使用annotation的有关问题
hibernate3.6.7中使用annotation的问题importorg.hibernate.SessionFactory;importorg.hibernate.cfg.AnnotationConfiguration;publicclassHibernateUtil{ privatestaticSessionFactorysf; static{ sf=newAnnotationConfi...
124
热度 -
原来很正常的hibernate联接mysql,突然报:java.net.ConnectException: Connection refused: connect
原来很正常的hibernate连接mysql,突然报:java.net.ConnectException:Connectionrefused:connect大概两周前用myeclipse做的hibernate连接mysql的小测试,只是完成很简单的功能,很正常,今天拿来再试时,突然报下面的错误:Couldnotconnectto::4070 java.net.ConnectException:...
772
热度 -
hibernate配置c3p0的有关问题
hibernate配置c3p0的问题我在hibernate中配置c3p0的xml如下:<?xmlversion='1.0'encoding='utf-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD//EN"&quo...
17
热度 -
Ehcache HIbernate令人困惑的行为
问题描述 我已经为一个简单的休眠实体实现了ehcache,如下所示: @Bean(destroyMethod="shutdown") publicnet.sf.ehcache.CacheManagerehCacheManager() { //defaultconfig CacheConfigurationcacheConfiguration=newCacheConfiguration(); ca...
90
热度 -
【SF】白色情人节,该怎么解决
【SF】白色情人节怎么看都觉得像商家促销的手段……百度百科3月14日是白色情人节。白色情人节流行于日本、中国台湾等地区,是我们所知道的西方情人节的延续,在送礼方面也不同:具体为2月14日男方送女方一份礼物,主要是玫瑰花或者巧克力。(只是中国大陆和英美法)3月14日白色情人节,就该轮到女方送男方礼物了。(日本,中国台湾是刚好相反的,2月14日是女生送巧克力,3月14日是男生回礼~)在日本,通常欲告白...
56
热度 -
hibernate annotation多对一存储有关问题
hibernateannotation多对一存储问题我有两个类问题和问题类型。Question和QuestionType,一对多。Question表里有QuestionType的外键,并且我想Questiontype是不能重复的,比如问卷类型就那几个,课堂反馈、网上调查等。所以在QuestionType的qt_des字段设置unique,我在savaquestion时就不能插入questionTy...
141
热度 -
hibernate方言设置有关问题
hibernate方言设置问题使用hibernate操作数据库出现以下错误,怀疑方言没有设置,请问连接oracle应该真设置!log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).log4j:WARNPleaseinitializethelog4jsystemproperly.log4j:WARNSeeh...
15
热度 -
org.hibernate.MappingNotFoundException: resource: net.itaem.bean/HomeNews.hbm.xm,该如何解决
hibernate.MappingNotFoundException'>org.hibernate.MappingNotFoundException:resource:net.itaem.bean/HomeNews.hbm.xm<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-/...
57
热度 -
hibernate筹建
hibernate搭建1.Hibernate.cfg.xml配置文件 用于配置数据库连接 运行时所需的各种属性 默认文件名为“hibernate.cfg.xml” hibernate-configurationPUBLIC "-//Hibernate/HibernateConfigurationDTD3.0//EN" "http://hibernate.sourceforge.net/hib...
81
热度 -
hibernate有关问题 error establishing socket
hibernate问题errorestablishingsocket在网上找了好多资料也安装了sp4补丁与数据库连接正常就是hibernate连不上.求解答出错信息:Exceptioninthread"main"hibernate.exception.JDBCConnectionException'>org.hibernate.exception.JDBCConnectionE...
126
热度 -
Hibernate调用存储过程 报错找不到存储过程*解决方案
Hibernate调用存储过程报错找不到存储过程****创建存储SqlServer2005存储过程的语句createprocedurepro_GetAllStudentasselect*fromstudentgoStudent.hbm.xml里的配置<sql-queryname="pro_GetAllStudent"callable="true">...
79
热度 -
org.hibernate.TransactionException: Transaction not successfully started
紧急求助!这是我使用hibernate往MySQL中注入数据时出现的错误,我是新手,求教怎么解决呢hibernate.exception.JDBCConnectionException'>org.hibernate.exception.JDBCConnectionException:Cannotopenconnection atorg.hibernate.exception.SQLStateCon...
686
热度 -
初学hibernate,Hibernate Synchronizer这个插件感觉有点有关问题,死了!老是有错误
初学hibernate,HibernateSynchronizer这个插件感觉有点问题,急死了!老是有错误我用hibernatesynchronizer按照网上的例子做了一个例子,运行了n天还是没有运行起来这是我的hbm.xml文件<?xmlversion="1.0"?><!DOCTYPEhibernate-mappingPUBLIC "-//Hib...
536
热度