Hibernate Query Error Mysql -
i new hibernate query. database mysql.
when run got error like
org.hibernate.hql.internal.ast.errorcounter.reporterror - line 1:293: unexpected token: minute
my query follows below
select distinct lol.spajno,wasup.key11,lol.creationdate facebook lol , watsapp wasup " + "lol.spajno=wasup.key21 , lol.creationdate >= date_add(sysdate(),interval -"+timerange+" minute) , " + "lol.status not in ?1 , lol.retryattempt > "+no_retry_attempt;
afaik interval
not supported hql, either change query, switch native query or pass value query parameter
Comments
Post a Comment