java - column and column = :variable does not working in HQL -


select fr1 friend fr1 fr1.useridone , fr1.useridtwo in (:list) why operator 'and' not work in hql?

gives me this error. shed bit of light on this? thanks!

you have use and keyword between logical statements. query should follows: select fr1 friend fr1 fr1.useridone in (:list) , fr1.useridtwo in (:list)


Comments