I'm a bit confused about the differences between using the static hasOne map and composing objects in domain classes. What are the differences between the two? ie.
class DegreeProgram {
String degreeName
Date programOfStudyApproval
static hasOne = [committee:GraduateCommittee]
}
versus
class DegreeProgram {
String degreeName
Date programOfStudyApproval
GraduateCommittee committee
}
where GraduateCommittee is another GORM domain model class.