Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7888555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:51:41+00:00 2026-06-03T05:51:41+00:00

I am using objectify-appengine framework for querying. Here is my simplified problem: Consider these

  • 0

I am using objectify-appengine framework for querying. Here is my simplified problem: Consider these 2 classes:-

public class Customer {
    @Id private String email;
    @Embedded private Account Account = new Account(); // note embedded annotation
}

and

public class Account {
   private String number;  //example: 1234
}

The following query works & gives me 1 customer:

Objectify ofy = ObjectifyService.begin();
ofy.query(Customer.class).filter("account.number = ", "1234");

Question:

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:

ofy.query(Customer.class).filter("account.number = ", myAccountNumberList);

But if fails saying:
java.lang.IllegalArgumentException: A collection of values is not allowed.

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:51:42+00:00Added an answer on June 3, 2026 at 5:51 am
    filter("account.number IN", theList)
    

    Note that IN just causes the GAE SDK to issue multiple queries for you, merging the results:

    The IN operator also performs multiple queries, one for each item in the specified list, with all other filters the same and the IN filter replaced with an EQUAL filter. The results are merged, in the order of the items in the list. If a query has more than one IN filter, it is performed as multiple queries, one for each possible combination of values in the IN lists.

    From https://developers.google.com/appengine/docs/java/datastore/queries

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using objectify on appengine with the java runtime. I am also using
I am using objectify 3.1 on appengine and attempting to do a ancestor query.
I'm using GAE/Java with Objectify, and I'm trying to find the fastest way to
I'm using objectify's @Cached annotations on my entities. Obviously, this means that any time
I've got a Android AppEngine Connected Project I'm trying to build using GWT2.4 RequestFactory
I am using Objectify for retrieving data From datastore in GWT,But i get the
I've developing a test app using GAE/J + Objectify and now trying to query
Note: I've only been using Objective-C for a week. Here's my end goal: I
I'm working on an iPhone app using objective C. I've got class A, which
Iam trying to make a simple ordering using objectify and GAE. Unfortunatly it does't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.