source:
trunk/src/grails-app/domain/TaskGroup.groovy
@
16
| Last change on this file since 16 was 16, checked in by , 17 years ago | |
|---|---|
| File size: 224 bytes | |
| Rev | Line | |
|---|---|---|
| [16] | 1 | class TaskGroup { |
| 2 | String name | |
| 3 | String description | |
| 4 | ||
| 5 | static hasMany = [tasks : Task] | |
| 6 | ||
| 7 | static constraints = { | |
| 8 | name(blank:false) | |
| 9 | description(blank:false) | |
| 10 | } | |
| 11 | ||
| 12 | String toString() {"${name}"} | |
| 13 | } |
Note: See TracBrowser
for help on using the repository browser.
