HQL
hql = " select teb from A teb,B tt where teb.state='1' and (teb.startdate>=? || teb.enddate<=?) and teb.templateID=tt.templateId错误信息 
 org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: ||
Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: || near line 1, column 146 [ select teb from A teb,B tt where teb.state='1' and (teb.startdate>=? || teb.enddate<=?) and teb.templateID=tt.templateId ]
Caused by: line 1:146: unexpected token: ||请问到底怎么回事||不能用?可是在另外一个地方也是写的一样的语句就可以 实在郁闷~这句HQL语句我改成SQL放在PL/SQL里面运行也是不行的.不知道到底哪里有问题~