-
求教,Hibernate插入数据的有关问题
求教,Hibernate插入数据的问题想往数据库里插数据,写了个bean配完hibernate.cfg.xml和hbm.xml后测试了下,一排错误,心都碎了。。。求各位大侠帮小弟我找找哪里出了错,感激不尽啊-----------------------------------------------JavaBean-->User-->里面有id,username和password内容我...
113
热度 -
java.sql.SQLWarning: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to master这是什么警告?该如何处理
java.sql.SQLWarning:[Microsoft][SQLServer2000DriverforJDBC]Databasechangedtomaster这是什么警告?java.sql.SQLWarning:[Microsoft][SQLServer2000DriverforJDBC]Databasechangedtomaster atcom.microsoft.jdbc.base.Ba...
246
热度 -
事务提交的时候 ORA-01733: 此处不允许虚拟列出现这个错误
事务提交的时候ORA-01733:此处不允许虚拟列出现这个异常更新issuemark的sql=updateissuemarksetbonusfile=1whereissueid=65537511-0514:15:44.737[ERROR]-ORA-01733:此处不允许虚拟列11-0514:15:44.737[ERROR]-ORA-01733:此处不允许虚拟列11-0514:15:44.737[E...
78
热度 -
org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
Hibernate问题时好时坏解决不了啦例外org.hibernate.exception.GenericJDBCException:couldnotexecutequery org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) org.hibernate...
334
热度 -
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch updat解决办法
org.hibernate.exception.GenericJDBCException:CouldnotexecuteJDBCbatchupdat写Hibernate的时候报这个错:org.hibernate.exception.GenericJDBCException:CouldnotexecuteJDBCbatchupdate atorg.hibernate.exception.SQLSta...
525
热度 -
mysql的date类存入有关问题
mysql的date类存入问题向大家请教一个问题,今天在写代码的时候碰到一个难题,我在数据库中有个字段类型设置为了Date类型。在java中能正常的取出来,并显示,但我在存入的时候遇到了难题。我首先看了看hibernate生成的映射,该字段的类型是Date,那我想,存入的时候我只要new一个Date(是util包下的)对象直接存入就行了吧,结果就过报错了。然后我想可能是长度的问题,因为从数据库中取...
81
热度 -
hibernate出了点莫名其妙的有关问题,请问了
hibernate出了点莫名其妙的问题,请教了我自己写了一个hql的语句,然后放入dao类中,具体代码如下JavacodepublicList<Temprelation>findMaxCount(StringASId){log.debug("findtheMaxCountObject"+ASId+"!");StringqueryString=&q...
9
热度 -
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
热度 -
应用Hibernate注解自动创建表报错
使用Hibernate注解自动创建表报错实体类packagecom.entity;importjavax.persistence.Entity;importjavax.persistence.GeneratedValue;importjavax.persistence.GenerationType;importjavax.persistence.Id;/**使用注解创建并关联数据库中的表,需要在h...
103
热度 -
hibernate主键生成策略native有关问题
hibernate主键生成策略native问题我用的是mysql数据库,生成策略是increment时一切正常,但如果换做native就老说插入语句主键不能为空xml配置:<hibernate-mappingpackage="domain"> <classname="Student"table="Student">...
153
热度 -
Hibernate修改操作解决思路
Hibernate修改操作先贴错误信息Exceptioninthread"main"org.hibernate.exception.GenericJDBCException:couldnotexecuteupdatequery atorg.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLS...
210
热度 -
hibernate多对一删除many有关问题
hibernate多对一删除many问题java程序代码:SessionFactorysessionFactory=newConfiguration().configure() .buildSessionFactory(); Sessionsession=sessionFactory.openSession(); Transactionts=session.beginTransactio...
112
热度 -
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation:
添加的时候出错,什么原因?[framework]2011-10-1111:18:49,703-org.hibernate.util.JDBCException'>JDBCExceptionReporter-0[http-8080-2]WARNorg.hibernate.util.JDBCExceptionReporter-SQLError:1364,SQLState:HY000[framework...
174
热度 -
违反完整约束条件 (XWSERVER.FK_ORDERS_CAR) - 未找到父项,该怎么处理
违反完整约束条件(XWSERVER.FK_ORDERS_CAR)-未找到父项Hibernate:updateXWSERVER.CLIENT_INFOsetIMAGE_PATH=?,STATUS=?,CLIENT_ID=?,CLIENT_ACCOUNT=?,CLIENT_PSW=?,CLIENT_NAME=?,CLIENT_MOBILE_PHONE=?,CLIENT_CORP=?,CLIENT_AD...
33
热度 -
org.hibernate.exception.GenericJDBCException: could not execute query,
org.hibernate.exception.GenericJDBCException:couldnotexecutequery,是怎么回事啊?请高手指点运行后出现如下问题:HTTPStatus500---------------------------------------------typeExceptionreportmessagedescriptionTheserverencounte...
89
热度 -
hibenate+oracle报错:could not get next sequence value,该怎么处理
hibenate+oracle报错:couldnotgetnextsequencevalue在sql*plus下执行语句:insertintouserinfo(userid,username,userpw)values(105,'a','b');commit后数据可以插入到数据库xml:Javacode<idname="userid"type="java.lan...
846
热度 -
J2EE连接Oracle的一个有关问题
J2EE连接Oracle的一个问题因为公司程序经常出一个连接池不够用的情况,我现在做了一个测试:我在Weblogic中设置了最大连接数为:1然后我登录系统没有问题,但是我刷新一下只有就出现这个问题了。程序首页有一个每几秒刷新的公告功能,这个公告数据是查询出来的下面是我刷新出的问题:15:46:23,546ERRORJDBCException'>JDBCExceptionReporter:46-we...
83
热度 -
hirbernate分页出错解决办法
hirbernate分页出错数据库中的是sqlserver2000JavacodeConfigurationcon=newConfiguration().configure();SessionFactorysf=con.buildSessionFactory();Sessionsession=sf.openSession();Queryq=session.createQuery("fro...
27
热度 -
新手Exception in thread "main" org.hibernate.exception.SQLGrammarException: coul
新手求助Exceptioninthread"main"org.hibernate.exception.SQLGrammarException:coulExceptioninthread"main"org.hibernate.exception.SQLGrammarException:couldnotinsert:[org.crazyit.app.domain...
148
热度 -
Caused by: java.sql.SQLException: Duplicate entry '?' for key 'name'解决办法
Causedby:java.sql.SQLException:Duplicateentry'????'forkey'name'我有一些数据放到了一个xml的文件中,然后倒入数据库。我在用junit进行测试的时候出现以下错误:09:18:07,426INFOInitSystemDatasImpl:68-导入模块【个人办公】Hibernate:insertintoT_Module(name,sn,ur...
702
热度