本帖最后由 liu455133252 于 2009-10-21 15:55:19 编辑

解决方案 »

  1.   

    org.hibernate.exception.SQLGrammarException: could not execute query 
    语法错误
      

  2.   


    Query query=session.createQuery("from UserInfoFormBean as u where u.userName='admin' and u.userPassword='admin'")
    这有错误吗
      

  3.   

     List list = (List)hibernateTemplate.find("from UserInfoFormBean as u where u.userName='admin' and u.userPassword='admin'");
      

  4.   

    POJO映射看看字段类型 包装类改改试试
      

  5.   

    单用Hibenate 没有问题 但整合Struts后出现这个问题了