In Java when having Object Book with fields price and name
and Map<Long, String>
with books objects I have trouble with where clause I want to make following query:
SELECT b FROM books
WHERE (b.price, b.name) IN ((20, 'book1'), (30, 'book2'), (15, 'book3'))
I couldn't find result, tried HQL query for id pairs / tuples and How to check if a pair exists using HQL in query? and JPA named query match a list of tuples in IN clause