I have a table like below CODES(location, code, description, start_date, end_date)
I need the below query using Hibernate criteria or detached criteria
SELECT location, code, description, start_date, end_date FROM CODES WHERE (location,code) in (('loc1','1'),('loc2','2'),('loc3','3'),('loc4','4'),('loc5','5'))
I have to pass the location and code values as parameters(dynamically pass at run time).
How to get the above query using Hibernate criteria or detached criteria