【发布时间】:2013-07-27 21:37:33
【问题描述】:
我想要两个实体
@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();
【问题讨论】:
标签: google-app-engine objectify