class TaskGroup { String name String description boolean isActive = true static hasMany = [tasks : Task] static constraints = { name(blank:false) description(blank:false) } String toString() {"${this.name}"} }