java - JPA CriteriaBuilder SELECT two Columns WHERE values IN Collection of Tuples -


i have question jpa criteriabuilder.

i have table 2 foreign keys a_id , b_id. want select records pair of (a_id, b_id) in set of tuples. possible build query criteriabuilder?

in oracle database followed query work:

select a.id table_name (a.a_id, a.b_id) in ((123, 21), (423, 32)); 

but have difficulty build clause criteriabuilder. in expression work single value? or maybe possible same thing subquery?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -