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