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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -