クエリに objectify-appengine フレームワークを使用しています。これが私の単純化された問題です:これらの2つのクラスを考えてください:-
public class Customer {
@Id private String email;
@Embedded private Account Account = new Account(); // note embedded annotation
}
と
public class Account {
private String number; //example: 1234
}
次のクエリが機能し、1 人の顧客が得られます。
Objectify ofy = ObjectifyService.begin();
ofy.query(Customer.class).filter("account.number = ", "1234");
質問:
ただし、値のリスト (口座番号) がある場合。それらを1つのクエリで取得する方法はありますか? 次のような口座番号のリストを渡そうとしました:
ofy.query(Customer.class).filter("account.number = ", myAccountNumberList);
しかし、次のように言って失敗した場合: java.lang.IllegalArgumentException: A collection of values is not allowed.
考え?