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

Add overloaded method taking Collection of id values.
This commit is contained in:
Rob Bygrave
2021-09-23 15:32:40 +12:00
parent dec114028f
commit 8ee67410f9
3 changed files with 32 additions and 8 deletions
@@ -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()