【发布时间】:2017-04-28 10:43:45
【问题描述】:
我有一个包含以下字段的课程实体
@Index
private @Load
Ref<Student> student;
然后学生实体拥有该字段
@Index
private String matric;
我想加载所有使用学生矩阵编号排序的课程实体。
我尝试过使用“。”运算符来获取这样的子字段
ofy().load().type(Course.class).filter("course", course).order("student.matric").list();
但这不会返回任何结果。
可以这样做吗?如何?
【问题讨论】:
标签: google-app-engine google-cloud-endpoints objectify