hibernate restrictions.in with and, how to use?
Posted
by cometta
on Stack Overflow
See other posts from Stack Overflow
or by cometta
Published on 2010-04-27T08:11:08Z
Indexed on
2010/04/27
8:13 UTC
Read the original article
Hit count: 184
I have table like below
id, employee_no, survey_no, name
1 test 1 test_name
2 test2 1 test_name2
3 test3 1 test_name3
4 test4 2 test_name4
how to query with Restriction.in by combining below AND into one IN statement?
IN[ (if(survey_no==1) && employee_no== 'test') ,
(if(survey_no==1) && employee_no== 'test2') ,
...
]
© Stack Overflow or respective owner