当前位置: 代码迷 >> net.sf.hibernate.JDBCException的解决方案
 
  • 关于HIBERNATE

    关于HIBERNATE 我有四张表A,B,C,DD是关系表A,B,C他们之间的关系都是靠D来维护的我用HIBERNATE可以写出ABC的实体BEAN和配置文件但不知道如何来写关系表D,有没有必要去写这张表的实体BEAN和配置文件呢!请教! 搜索更多相关主题的帖子: color="red">HIBERNATE ...

    497
    热度
  • eclipse的失误:The markup in the document preceding the root e

    eclipse的出错:Themarkupinthedocumentprecedingtheroote点击右边红色标题查看本文完整版:eclipse的出错:Themarkupinthedocumentprecedingtherootelementmustbewell-formed以下是我的eclipse的出错信息??INFO:Mappingresource:com/jeffrey/messagelo...

    416
    热度
  • 觅一hibernate 资料

    找一hibernate资料模糊查询color='#e78608'>------解决方案--------------------http://download.csdn.net/detail/mamba10/4583701

    623
    热度
  • Hibernate中list映射~

    急!!Hibernate中list映射~~在线等我需要记录我插入的顺序这个功能,所以我用list映射。简单写了个Demo.数据库a表id,name两个字段b表id,a_id,type,indexnum四个字段其中indexnum由hibernate维护POJOpublicclassBbbb{ privateIntegerid; privateStringtype; privateAaaaa;}p...

    6349
    热度
  • 急关于hibernate+SQLserver,该如何处理

    急!!!关于hibernate+SQLserver我的hibernate.cfg.xml配置如下:<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC"-//Hibernate/HibernateConfigurationDTD3.0//EN""http:...

    76
    热度
  • hibernate的one-to-many和many-to-one的级联保存有关问题

    hibernate的one-to-many和many-to-one的级联保存问题在我的项目中,有一个User类和一个Group类,两者的关系式1-N,user.hbm.xml配置文件中的many-to-one内容如下:<many-to-onename="group" class="com.whir.model.Group" column="groupid" insert="true" ...

    164
    热度
  • hibernate平添索引

    hibernate添加索引 在一对多的关系中,在多的一方会产生一个外键,这个外键没有自动添加索引,当存在从一的一端产生对多的一端的查询时,有可能会在多的一端造成全表查询问题,数据量巨大时会产生严重的性能问题。可以在多一端的外键上添加索引(index="user_group_id_idx")来解决这个问题。例如: <?xmlversion="1.0"?> <!DOCTYPEh...

    379
    热度
  • 帮忙解决思路

    帮忙...2008-09-1717:35:26,546ERROR[org.hibernate.proxy.BasicLazyInitializer]-CGLIBEnhancementfailed:org.shj.myznt.vo.Userjava.lang.NoSuchMethodError:org.objectweb.asm.ClassVisitor.visit(IILjava/lang/Str...

    5936
    热度
  • 哪位高手能帮帮小弟我-Hibernate

    谁能帮帮我-----Hibernate第一个hibernate,连接数据库的时候老是出现异常,如下:log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).log4j:WARNPleaseinitializethelog4jsystemproperly.Exceptioninthread"main...

    55
    热度
  • 【SQL_Sf】好久不见sfMm。求推到,往床上那种,该怎么处理

    【SQL_Sf】好久不见sfMm。求推到,往床上那种有谁知道她和水哥的JQ,1000分求真相color='#e78608'>------解决方案--------------------这个求真相color='#e78608'>------解决方案--------------------color='#e78608'>------解决方案--------------------同一人,分拿來colo...

    93
    热度
  • 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
    热度
  • hibernate向mysql插入数据失败!解决思路

    hibernate向mysql插入数据失败!运行程序的结果是:Exceptioninthread"main"hibernate.exception.SQLGrammarException'>org.hibernate.exception.SQLGrammarException:couldnotinsert:[lee.News];Causedby:java.sql.SQLExce...

    18
    热度
  • Hibernate条件查询(Criteria Query)

    Hibernate条件查询(CriteriaQuery) 1、创建一个Criteria实例 net.sf.hibernate.Criteria这个接口代表对一个特定的持久化类的查询。Session是用来制造Criteria实例的工厂。 Criteriacrit=sess.createCriteria(Cat.class); crit.setMaxResults(...

    767
    热度
  • org.hibernate.exception.SQLGrammarException,该怎么处理

    hibernate.exception.SQLGrammarException'>org.hibernate.exception.SQLGrammarException我配置了hibernate,并生成实体类,但是在操作数据时,感觉生成的语句很奇怪都不像正常的语句的。hibernate.cfg.xml:<?xmlversion="1.0"encoding="UTF-8"?><!D...

    141
    热度
  • hibernate.MappingException: Error reading resource: zhb/ssh/entity/zhb.hbm.xml解决方案

    hibernate.MappingException:Errorreadingresource:zhb/ssh/entity/zhb.hbm.xmlhibernate.cfg.xml配置<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEhibernate-configurationPUBLIC&quo...

    326
    热度
  • hibernate用log4j无日志信息显示

    求助hibernate用log4j无日志信息显示我用的是myeclipse,建立hibernate工程是利用右键工程->myeclipse->addhibernate的方式导的包,这种方式可取吗?里边已有:slf4j-api-1.5.8.jarslf4j-log4j12-1.5.8.jarlog4j-1.2.14.jar3个包,也配置了log4j.properties文件,为什么控制台...

    73
    热度
  • at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)

    为什么有的时候我的hibernate老提示我publishTime无效啊?hibernate.exception.SQLGrammarException'>org.hibernate.exception.SQLGrammarException:couldnotinitializeacollectionbatch:[com.ltd.blog.bean.BlogBean.articles#<5,...

    7887
    热度
  • [求助]一个Hibernate问题

    [求助]一个Hibernate问题 usr.hbm.xml<hibernate-mapping><classname="com.po.Usr"table="usr"><idname="id"type="long"><columnname="id"/><generatorclass="increment"/>&l...

    295
    热度
  • hibernate 的log4j如何写 才能输出sql语句 ?

    hibernate的log4j怎么写才能输出sql语句??在线等这是我的log4j文件--------#log4j.rootLogger=DEBUG,stdout,logfile,INFOlog4j.rootLogger=DEBUG,stdoutlog4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.l...

    305
    热度
  • 刚刚学hibernate出错

    刚学hibernate出错.是一个手动创建数据表的小程序.[ShowDB.java]packagecom.hibernate;importorg.hibernate.cfg.Configuration;importorg.hibernate.tool.hbm2ddl.SchemaExport;/***手动导出数据表**@authorpuruidong*@version2013.8.30*/publ...

    103
    热度