ERROR org.hibernate.hql.internal.ast.ErrorCounter unexpected token: form解决方法
2015-12-29 15:43
399 查看
执行hql语句的时候报出了下面的错误:
<span style="font-size:18px;">15:16:14.500 [http-nio-8080-exec-9] ERROR org.hibernate.hql.internal.ast.ErrorCounter - line 1:1: unexpected token: form 15:16:14.501 [http-nio-8080-exec-9] ERROR org.hibernate.hql.internal.ast.ErrorCounter - line 1:1: unexpected token: form antlr.NoViableAltException: unexpected token: form</span>
<span style="font-size:18px;"> </span>这是因为hql语句中出现了不能识别的字符串或符号,修改过来就可以了。例如这条错误中from写成了form。
相关文章推荐
- sql2008 hql语句翻译过来的分页语句介绍
- Hibernate Oracle sequence的使用技巧
- jsp Hibernate批量更新和批量删除处理代码
- jsp hibernate的分页代码第1/3页
- JAVA+Hibernate 无限级分类
- SSH整合中 hibernate托管给Spring得到SessionFactory
- jsp hibernate 数据保存操作的原理
- hibernate中的增删改查实现代码
- 解决hibernate+mysql写入数据库乱码
- java优化hibernate性能的几点建议
- java Hibernate延迟加载
- hibernate 常用方法介绍
- 详解Java的Hibernate框架中的注解与缓存
- 浅析Java的Hibernate框架中的继承关系设计
- JQuery+Ajax+Struts2+Hibernate框架整合实现完整的登录注册
- 深入理解Hibernate中的flush机制
- 简单的手工hibernate程序示例
- 详解Java的Hibernate框架中的缓存与二级缓存
- 详解Java的Hibernate框架中的List映射表与Bag映射
- 举例讲解Java的Hibernate框架中的多对一和一对多映射