Code:
from
table
where table.tableId in (select distinct otherTable.otherTableField where table.tableId = otherTable,tableId
and otherTable.tableColumn in (:tableColumn))
and table.someTableColumn in (:someTableColumn)
.setParameterList(tableColumn, someArray[5])
.setParameterList(someTableColumn, someOtherArray[5])
This is possible to attach two setParameterList of the same length, but is there a way to re-write these queries where in you know that you want to pass a single parameter from the two arrays/list for the two variables. i.e.,
if
Code:
String[] array1 = new String[]{"abc","cde","def"};
String[] array2 = new String[]{"123","234","345"};
I want to pass array1[0]="abc" along with array2[0]="123" at the same time and so on, and get the results.