当出现以下异常信息时
javax.servlet.ServletException: org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: : near line 1, column 33 [from com.dao.Book where bookName:=name]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: unexpected token: : near line 1, column 33 [from com.dao.Book where bookName:=name]
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
表示HQL语句写错了,如findByNamedParam("from Book where bookName:=name", "name", bname);应是=:而不是:=
分享到:
相关推荐
weblogic12 下最新 org.hibernate.hql.ast.HqlToken解决办法
NULL 博文链接:https://zhangzhi199129.iteye.com/blog/1626311
weblogic10 与hibernate冲突解决方案 错误如下:org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken linux windows 环境解决方案全解 Linux 启动脚本添加如下: export USER_...
对hibernate的hql进行了详尽的讲解
#hibernate.query.factory_class org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory ################# ### Platforms ### ################# ## JNDI Datasource #hibernate.connection....
Hibernate HQL.docHibernate HQL.docHibernate HQL.doc
Hibernate数据检索(HQL)笔记Hibernate数据检索(HQL)笔记Hibernate数据检索(HQL)笔记Hibernate数据检索(HQL)笔记
hibernate查询之HQLhibernate查询之HQLhibernate查询之HQL
魔乐科技,李兴华老师的Hibernate教程笔记,对Hibernate的基础知识进行了比较详细的讲解,对初学者有一个比较笼统的介绍,是带我们入门Hibernate的不二选择。
Hibernate HQL.txt Hibernate HQL.txt Hibernate HQL.txt
一个关于Hibernate-HQL 的文档 内容实际而且实用
Hibernate常用操作示例,包含详细注释说明,数据库初始化文件。使用和学习请参考:http://blog.csdn.net/daijin888888/article/details/51692942
Hibernate注解方式、HQL查询
Hibernate注释大全收藏 声明实体Bean @Entity public class Flight implements Serializable { Long id; @Id public Long getId() { return id; } public void setId(Long id) { this.id = id; } } @Entity ...
Hibernate HQL查询 分页查询 模糊查询.docxHibernate HQL查询 分页查询 模糊查询.docxHibernate HQL查询 分页查询 模糊查询.docxHibernate HQL查询 分页查询 模糊查询.docxHibernate HQL查询 分页查询 模糊查询....
Hibernate数据检索(HQL).rar
hibernate源码中的hql语句代码,添加,删除,修改,查询;hibernate源码中的hql语句代码,添加,删除,修改,查询
解决weblogic抛出的ClassNotFoundException: org.hibernate.hql.ast.HqlToken异常
hibernate3-hql.jar .
Hibernate在解析HQL生成SQL时需要的Java文件。压缩包里三个以.g为后缀的是规则文件,以.java为后缀的文件需要拷贝到Hibernate的源码org.hibernate.hql包下,便可运行