hibernate - What this sql query is wrong? -


query q = session.createquery("from financialtransactions ft_type='"+fttype+"' date between '"+begindate+"' , '"+enddate+"'"); 

whats wrong above query? gives error

you missed and there , here date keyword

change

where ft_type='"+fttype+"' date between  

to

where ft_type='"+fttype+"' , date between 

between various conditions need use and


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -