当前位置: 代码迷 >> org.hibernate.hql.ast.QuerySyntaxException的解决方案
 
  • hibernate:XXX is not 地图ped 感觉简单的有关问题却解决不了?

    hibernate:XXXisnotmapped感觉简单的问题却解决不了??publicList<Integer>getBoxId(intboxID){ Stringsql="selectdistinct(loopAddr)fromLampInfowhereboxID=?"; returnthis.getSession().createQuery(sql).setParameter(0...

    93
    热度
  • hibernate中运用hql语句判断时间大小,该怎么解决

    hibernate中运用hql语句判断时间大小JavacodeStringhql="fromTbNoMainClassInfotbClasswheretbClass.classinfoEnterTime<="+semVO.getSemBeginDate()+"andtbClass.classinfoGraduatTime>="+semVO.get...

    82
    热度
  • java.lang.NoSuchMethodError: org.hibernate.hql.antlr.HqlBaseParser.recover解决方案

    java.lang.NoSuchMethodError:org.hibernate.hql.antlr.HqlBaseParser.recover我在执行Listlist=this.getSessionFactory().openSession().createQuery(SQL).list()其中这个类继承了org.springframework.orm.hibernate3.support.H...

    199
    热度
  • 求一句hql语句,查询数据库的前5条记录,该如何处理

    求一句hql语句,查询数据库的前5条记录我用的struts2.0spring2.5+hibernate3.2开发一个项目,请问大家要提取数据库的最新的5条记录应该怎么写啊,我用这样的sql写publicList<News>findSixNews() { Stringsql="selecttop6*formtb_news"; return(List<New...

    97
    热度
  • 请大家帮小弟我看一上在Hibernate上报这个错误该怎么办?多谢

    请大家帮我看一下在Hibernate下报这个异常该怎么处理?谢谢!请大家帮我看一下在Hibernate下报这个异常改怎么处理!我在网上查了一下,说把你的from后面改成是实体类而不是表名,注意大小写。可是我在代码里改成……selectcfromClazzctherec.name=:name……运行时还是不行?Exceptioninthread"main"org.hibernate.hql.ast....

    620
    热度
  • nested exception is org.hibernate.QueryException: could not resolve property

    Hibernate异常oplevelof:com.dk.ykt.model.OperFunction[fromcom.dk.ykt.model.OperFunctionasopwhereop.oplevel=22];nestedexceptionisorg.hibernate.QueryException'>org.hibernate.QueryException:couldnotresolvep...

    277
    热度
  • 用注释的方式映射hibernate,报is not 地图ped

    用注释的方式映射hibernate,报isnotmapped报了org.hibernate.hql.ast.QuerySyntaxException'>org.hibernate.hql.ast.QuerySyntaxException:Userisnotmapped[fromUser]packagecom.model;importjavax.persistence.Column;importja...

    66
    热度
  • ssh中小弟我所不能了解的异常。

    ssh中我所不能了解的错误。。。ssh框架,写了添加功能和列表功能,都正常运行。又写了按照id查询,报出如下错误:org.springframework.orm.hibernate3.HibernateQueryException:unexpectedASTnode:+nearline1,column32[fromcom.pojo.Adminwhereid=+id];nestedexception...

    10664
    热度
  • hibernate 一对多的有关问题

    hibernate一对多的问题我有三张表university,college,professional。关系是:university-----collegecollege-----professional1--------N1------N现在前台传来一个参数“100010204”,我将这个字符串割开后得到三个参数uniNum(10001),collNum(02),profNum(04)一对多都是...

    75
    热度
  • 关于SessionFactory解决思路

    关于SessionFactorypublicstaticvoidmain(Stringargs[]){ SessionFactorysf=newConfiguration() .setProperty("hibernate.connection.driver_class","com.mysql.jdbc.Driver") .setProperty("hibernate.dialect","org....

    7484
    热度
  • line 一:99: unexpected token: null

    line1:99:unexpectedtoken:null 解决:等号后面没有相应的名字 Stringhql="fromEnrChangetwheret.enrStudentInfo.fid=:fidandt.fisRemove="; Map<String,Object>filter=newHashMap<String,Object>(); filter.put("fid"...

    1045
    热度
  • 用ssh做了一个登录 出现上面的有关问题了

    用ssh做了一个登录出现下面的问题了org.springframework.orm.hibernate3.HibernateQueryException:t_userisnotmapped[fromt_userwherename=?andpassword=?];nestedexceptionisorg.hibernate.hql.ast.QuerySyntaxException'>org.hibe...

    6412
    热度
  • ssh2做登录查询时报错,HibernateDaoSupport解决方案

    ssh2做登录查询时报错,HibernateDaoSupportorg.springframework.orm.hibernate3.HibernateQueryException:tb_userisnotmapped[fromtb_useruwhereusername='user1'anduserpassword='123'];nestedexceptionisorg.hibernate.hql...

    8468
    热度
  • ssh 查询语句 hql 错误

    ssh查询语句hql异常Strutshasdetectedanunhandledexception:Messages:unexpectedtoken:*nearline1,column8[select*fromtradeastwheret.id=123andt.efficient=false]File:org/hibernate/hql/ast/QuerySyntaxException'>Quer...

    831
    热度
  • Jboss上的有关问题

    Jboss下的问题项目工程在Tomcat下开发,部署运行没有任何问题,但是部署到Jboss下时,启动没有问题,但是只要访问数据库,就会报错:java.lang.IllegalArgumentException:org.hibernate.hql.ast.QuerySyntaxException:Rescisnotmapped[fromRescresc]2009-12-0114:08:29,859E...

    6842
    热度
  • Jboss下的有关问题

    Jboss下的问题项目工程在Tomcat下开发,部署运行没有任何问题,但是部署到Jboss下时,启动没有问题,但是只要访问数据库,就会报错:java.lang.IllegalArgumentException:org.hibernate.hql.ast.QuerySyntaxException:Rescisnotmapped[fromRescresc]2009-12-0114:08:29,859E...

    9414
    热度
  • 关于HQL查询报错有关问题

    关于HQL查询报错问题publicList<Message>getMessageList(intshowCount,intcurrentPage){ Stringhql="selecttitle,employeeId,publishTimefrom(selecta.title,a.employeeId,a.publishTime,rownumrnfrom(selecttitle,emp...

    103
    热度
  • hibernate hql 变换 sql

    hibernatehql转换sqlQueryTranslatortranslator=newQueryTranslator(hsql);translator.compile((net.sf.hibernate.engine.SessionFactoryImplementor)this.getSessionFactory(),Collections.EMPTY_MAP,false);System.o...

    366
    热度
  • 寻宗师:SSH中,页面传值给action中,查询结果报错

    寻大师:SSH中,页面传值给action中,查询结果报错:页面代码:<scripttype="text/javascript">functionselectSid(){varsid=document.getElementById("sid").value;window.location.href="findBySidStudent?sid="+sid;}</script>&...

    100
    热度
  • 急用,hibernate hql查询

    急用,在线等,hibernatehql查询我用hibernatehql语句实现查询,我定义的表示日期的字段在数据库中是datetime型的,在程序中是string类型的,现在我要查询出某个日期之间的记录,用hql语句怎么实现呢,需要把持久化类中的string类型改为date型的吗color='#e78608'>------解决方案--------------------不必将string类型改为d...

    32
    热度