0
我有3个域名: 1)用户 2)曲线 3)医生GORM Grails的withCriteria查询
1)医生扩展用户 2)用户hasOne轮廓
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
?