JPA named query match a list of tuples in IN clause
问题 spring data jpa 1.4.3 with Oracle 11g. I have an entity like this: class LinkRecord { String value; int linkType; ... } I am using (value, linkType) as a composite index. For a given list of (v, t) tuples, we need to select all the records in the DB so that value = v, linkType = t. Basically, I want to build this query: SELECT * FROM LINK_RECORD WHERE (VALUE, LINK_TYPE) IN (('value1', 0), ('value2', 25), ...) where the list in the IN clause is passed in as a param. Since we're working with a