当前位置: 代码迷 >> net.sf.hibernate.QueryException的解决方案
 
  • hibernate连接mysql中的有关问题

    hibernate连接mysql中的问题程序是一个实现向建好的MySQL数据库里加入一条记录,但是出现下面的错误信息,请高手指教一下,谢谢log4j:WARNNoappenderscouldbefoundforlogger(org.hibernate.cfg.Environment).log4j:WARNPleaseinitializethelog4jsystemproperly.Hibernat...

    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
    热度
  • 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
    热度
  • 怎么提高hibernate性能

    如何提高hibernate性能 ? 在一个拥有单独业务层的应用中,业务层必须在返回之前,为web层“准备”好其所需的数据集合。这就意味着业务层应该载入所有表现层/web层所需的数据,并将这些已实例化完毕的数据返回。通常,应用程序应该为web层所需的每个集合调用Hibernate.initialize()(这个调用必须发生咱session关闭之前);或者使用带有FETCH从句,或FetchMode...

    491
    热度
  • 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
    热度
  • 100分!hibernate关系投射

    100分!hibernate关系映射!one-to-one:由映射文件自动生成数据库,添加数据的时候,不能两个一起添加,相关文件如下:Idcard.hbm.xml:<!DOCTYPEhibernate-mappingPUBLIC"-//Hibernate/HibernateMappingDTD3.0//EN""http://hibernate.sourceforge.net/hibernat...

    68
    热度
  • hibernate菜鸟有关问题!

    hibernate菜鸟问题!急。。。在线等<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEhibernate-configurationPUBLIC "-//Hibernate/HibernateMappingDTD3.0//EN" "http://hibernate....

    26
    热度
  • hibernate菜鸟有关问题

    hibernate初学者问题不多说直接上报错图吧SLF4J:ThisversionofSLF4Jrequireslog4jversion1.2.12orlater.Seealsohttp://www.slf4j.org/codes.html#log4j_version16:50:05,573WARNDTDEntityResolver:73-recognizedobsoletehibernatena...

    130
    热度
  • 读取Hibernate属性文件,该如何解决

    读取Hibernate属性文件把连接数据库的信息放入Hibernate属性文件中,如用户名、密码,然后读取,大家给个例子啊color='#e78608'>------解决方案--------------------<?xmlversion='1.0'encoding='GB18030'?><!DOCTYPEhibernate-configurationPUBLIC"-/...

    247
    热度
  • SpringMVC+spring-security+sitemesh

    SpringMVC+spring-security+sitemesh+hibernate+freemarker整合-转net/code/snippet_170632_46774">http://www.oschina.net/code/snippet_170632_46774net/code/list">代码分享当前位置:net/code/list">代码分享»net/code/lis...

    285
    热度
  • hibernate 中运用 dual 求助

    hibernate中使用dual求助请各位帮忙看看,谢谢Dual.javapackagebean;importjava.io.Serializable;publicclassDualimplementsSerializable{ privateLongid; publicLonggetId(){ returnthis.id; } publicvoidsetId(Longid){ this.i...

    777
    热度