mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2387 - Additionally support setIdIn(Collection<?> ids)
Add overloaded method taking Collection of id values.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user