java - An expression of non-boolean type specified in a context where a condition is expected, near 'beetwen' -


i'm getting rhis error when trying pass date parameters. knows it??

public list <object[]>getmontantparvehicule(date d1,date d2) {      session session=hibernateutil.getsessionfactory().getcurrentsession();     session.begintransaction();     system.out.println("stat hql");     sqlquery q=session.createsqlquery("select immat,sum(prix)          cout,sum(quantite) quantite,count(immat) nbre bon_essence date_bon beetwen     :debut , :fin  group immat ");   //  query q =session.createquery("select immat,sum(prix) mnt bonessence group   immat  ");     q.setparameter("debut",d1  );     q.setparameter("fin",d2  ); return q.list(); 

you've mis-spelled "between" "beetwen" try this:

where date_bon between 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -