我的课程:
@Entity
@Cache
@Index
public class Log {
@Id Long id;
Ref<Site> site;
Ref<User> user;
Ref<Computer> computer;
Ref<License> license;
private String date_in;
private String date_out;
private boolean active;
}
@Entity
@Cache
@Index
public class License {
@Id Long id;
private String name;
private String startDate;
private String expDate;
private int timeStamp;
private int status;
private int offline;
private String identification;
Ref<Daemon> daemon;
private boolean active;
public enum Type {Country, Site, User, Computer, Lic};
}
我不知道为什么这不起作用:
ofy().load().type(Log.class)
.filter("license in",
ofy().load().type(License.class).filter("name",licName))
.list();
或者这个:
ofy().load().type(Log.class)
.filter("license in",
ofy().load().type(License.class).filter("name",licName).list())
.list();
我的许可证是我的日志中的参考。我可以使用ofy()吗?
任何人都可以解释一下吗?