0
votes

I want have two entities

@Entity
public class User {
   @Index private String email;
   @Index private String name;
   @Index private String age;
     }
 @Entity
public class poll {
     @Index private String pollid;
     @Index private String answer;
     @Index private Ref<User> user;
    }

Now if I want to query poll and filter by email I m getting empty. Is it possible?

ofy().load().type(Poll.class).filter("email", email).list();
1

1 Answers

1
votes

You can not do "indirect" queries on GAE (e.g. A JOIN type queries). Basically, your "poll" entity does not have the "email" field.