I need to convert the below SQL query into HQL query.
select * from table where (column1, column2 , column3) in
((‘A’,’B’,’C’),(‘D’,’E’,’F’));
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The below mentioned code works perfectly fine if IN clause contains ID but if I have to set the IN clause for non key column or partail key columns it won’t work.
But if I create HQL as “from SomeEntity e where (column1, column2)in (:idList)”, it doesn’t work.