title: Objectify app engine - querying embedded entities using a list of values
body: <p>I am using objectify-appengine framework for querying. Here is my simplified problem: Consider these 2 classes:-</p>
  
  <pre><code>public class Customer {
      @Id private String email;
      @Embedded private Account Account = new Account(); // note embedded annotation
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class Account {
     private String number;  //example: 1234
  }
  </code></pre>
  
  <p>The following query works &amp; gives me 1 customer:</p>
  
  <pre><code>Objectify ofy = ObjectifyService.begin();
  ofy.query(Customer.class).filter("account.number = ", "1234");
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>However, if have a List of values (account numbers). Is there a way to fetch them in 1 query? I tried passing a list of account numbers like this:</p>
  
  <pre><code>ofy.query(Customer.class).filter("account.number = ", myAccountNumberList);
  </code></pre>
  
  <p>But if fails saying:
  <strong>java.lang.IllegalArgumentException: A collection of values is not allowed.</strong></p>
  
  <p>Thoughts?</p>