org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
来源:互联网 发布:天窗玻璃 知乎 编辑:程序博客网 时间:2024/05/22 12:50
文章摘自:http://blog.csdn.net/yangwawa19870921/article/details/7553181
在编写HQL时,可能会出现这种代码:
- select a.name,b.age from TableA a left join TableB b on a.id=b.id
如果这是HQL,那么这段代码就是错误的,因为HQL不支持ON这个字符,如果要做关联关系就必须将On改为where:
- select a.name,b.age from TableA a left join TableB b where a.id=b.id
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: where near line
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 3解决方法
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: ( near line 1, column 16
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 1, column 17 [select co
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: * near line 1, column 8
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: u near line 1, column 55 [fro
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: b near line 1, column 49...
- 求帮助org.hibernate.hql.ast.QuerySyntaxException: unexpected token: id near line 1, column 35 [from com
- org.hibernate.hql.internal.ast.QuerySyntaxExceptionunexpected token: on near line 1
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token 的解决
- HQL子查询报错:org.hibernate.hql.ast.QuerySyntaxException: unexpected token...
- org.hibernate.hql.ast.QuerySyntaxException解决方案
- 相当相当隐蔽的错误 org.hibernate.hql.ast.QuerySyntaxException: unexpected token
- 相当相当隐蔽的错误 org.hibernate.hql.ast.QuerySyntaxException: unexpected token
- Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
- org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected end of subtree []
- org.hibernate.hql.ast.QuerySyntaxException
- 用JDBC直连方式访问SQL Server 2005详解
- 使用DownloadProvider来完成下载任务
- Android高级编程(奋斗之小鸟)_PDF 电子书
- Android4.0 input事件输入流程详解(中间层到应用层)
- 程序员追女孩攻略一则
- org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1解决方案
- 智能手机上的常用传感器
- linux下修改cramfs文件系统中文件
- Haar分类器
- android ndk使用gcc4.7 toolchain编译项目
- LVM磁盘管理
- 多播与广播
- log4cxx配置文件讲解,以及测试程序
- 如何让android程序完全退出