#2387 - Additionally support setIdIn(Collection<?> ids)

Add overloaded method taking Collection of id values.
This commit is contained in:
Rob Bygrave committed 2021-09-23 15:32:40 +12:00
1 parent dec114028f
commit 8ee67410f9
3 files changed
+32 -8

No files matched your search

@@ -233,8 +233,16 @@ public class QCustomerTest {
@Test
public void testIdIn() {
List<Integer> ids = new ArrayList<>();
ids.add(1);
ids.add(2);
new QCustomer()
.setIdIn("1", "2")
.setIdIn(ids) // collection argument
.findList();
new QCustomer()
.setIdIn("1", "2") // varargs argument
.findList();
new QCustomer()