
Untitled
By: a guest on
Jul 29th, 2012 | syntax:
None | size: 0.51 KB | hits: 11 | expires: Never
Objectify app engine - querying embedded entities using a list of values
public class Customer {
@Id private String email;
@Embedded private Account Account = new Account(); // note embedded annotation
}
public class Account {
private String number; //example: 1234
}
Objectify ofy = ObjectifyService.begin();
ofy.query(Customer.class).filter("account.number = ", "1234");
ofy.query(Customer.class).filter("account.number = ", myAccountNumberList);
filter("account.number IN", theList)