Playframework 基于OneToOne场的Ebean模型
如果我有一个包含一对一关系的模型:Playframework 基于OneToOne场的Ebean模型,playframework,ebean,Playframework,Ebean,如果我有一个包含一对一关系的模型: class Person { int id; String name; int age; Detail detail; } class Detail { int id; String description } 如果我有详细信息id,如何根据详细信息id获取人员 在django中,我可以执行类似Person.objects.filterdetail\uuu id=id\u of\u detail[0]的操作,看看这是否有帮助
class Person {
int id;
String name;
int age;
Detail detail;
}
class Detail {
int id;
String description
}
如果我有详细信息id,如何根据详细信息id获取人员
在django中,我可以执行类似Person.objects.filterdetail\uuu id=id\u of\u detail[0]的操作,看看这是否有帮助