In hibernate how to create this query
"select test_type_nmbr from test_table where test_type_name in
(select Test_type_name from test_table where test_type_nmbr in('111','222' ))".
Here suppose in the database you have values like the following:
test_type_nmbr | test_type_name
-------------------------------
111 | gre
222 | gmat
333 | gre
Now you want to get all the test_type_ nmbr having "gre" as the test_type_name (i.e. '111' and '333') and you have only 111 test_type_nmbr with you.
Do I need to use 2 different callbacks criterias or can I do in 1? If 1 then please let me know how.