13
votes

Is it possible to make an Objectify query with a list and get a list of all objects matching the list? For example

List<String> vinNumberList;
Query<CarObject> q=ofy.query(CarObject.class).filter("vin",vinNumberList);
1

1 Answers

24
votes

Yes, its possible... add "in" , like this

ofy.query(CarObject.class).filter("vin in",vinNumberList);