【发布时间】:2015-11-08 15:43:33
【问题描述】:
我有 3 个域: 1) 用户 2) 简介 3) 医生
1) 医生扩展用户 2) 用户拥有一个个人资料
class User {
String username
String password
static hasOne = [profile: Profile]
}
class Profile {
String fullName
String address
String cellno
}
class Doctor {
String workLocation
String specialization
}
如何编写一个 GORM 查询以列出所有基于专业和workLocation 的医生及其姓名profile.fullName?
【问题讨论】:
标签: grails grails-orm