我想要两个实体
@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;
}
现在,如果我想通过电子邮件查询民意调查和过滤,我就空了。可能吗?
ofy().load().type(Poll.class).filter("email", email).list();