class Task { TaskGroup taskGroup Person person String name String description Date scheduledDate Date targetDate static hasMany = [entries: Entry, modifications : Modification] static belongsTo = [TaskGroup, Person] static constraints = { name(blank:false) description(blank:false) } String toString() {"${this.name}"} }