I have this hql query :
... DATE_ADD(p.bar.foo, INTERVAL :param SECOND) < NOW() ...
Hibernate throws this exception :
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: : near line 1, column 715
Hibernate says that the syntax exception is related to :param.
What i wanted to do is just to bind param in a none hql experssion.