下面是两条hql语句:
"from Application as a where"+"a.attend.employee=?"
"from Attend as a where a.employee=? and"+"a.duty=?"
请问一下里面的加号怎么来的。平时拼凑hql语句也要加号吗?有没有什么规则?
"from Application as a where"+"a.attend.employee=?"
"from Attend as a where a.employee=? and"+"a.duty=?"
请问一下里面的加号怎么来的。平时拼凑hql语句也要加号吗?有没有什么规则?
解决方案 »
- 请问现在哪个短信接口好啊
- SSH案例 集成在页面遍历List 报中文乱码
- org.hibernate.exception.SQLGrammarException: could not execute query
- 菜鸟第一次发言,用jstl解析xml出现异常,谁能帮我看看啊谢谢啊
- 关于异常的问题
- strut 问题,进不去!!!!Cannot find ActionMappings or ActionFormBeans collection”
- ssh+mysql 在生成vo的时候总是生成两个vo?
- 项目运行,每次修改代码后保存,一直报错
- 那位大哥能详细说明一下,hibernate中的,一对一,一对多,多对多,到底指的是什么????
- 簡單問題,幫忙看一看 謝謝
- SSH框架是个怎么回事?新手入门必读
- java 对List<Map<String, Object>> 进行排序
"from Attend as a where a.employee=? and a.duty=?"
这样就行,+号都是在要连接变量时使用。