mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Pr/id in as collection2 (#1034)
* ENH: Changed idIn(List) to idIn(Collection) * ADD: sanity checks in IdBinder & special case if ID-list is empty
This commit is contained in:
committed by
Rob Bygrave
parent
c454e1f8a7
commit
a1f95bf25e
@@ -10,7 +10,7 @@ import io.ebean.search.TextQueryString;
|
||||
import io.ebean.search.TextSimple;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Collection;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ public interface DocQueryContext {
|
||||
/**
|
||||
* Write an Id in expression.
|
||||
*/
|
||||
void writeIds(List<?> idList) throws IOException;
|
||||
void writeIds(Collection<?> idCollection) throws IOException;
|
||||
|
||||
/**
|
||||
* Write an Id equals expression.
|
||||
|
||||
Reference in New Issue
Block a user