source:
trunk/src/grails-app/domain/Entry.groovy
@
83
| Last change on this file since 83 was 50, checked in by , 17 years ago | |
|---|---|
| File size: 447 bytes | |
| Rev | Line | |
|---|---|---|
| [16] | 1 | class Entry { |
| 2 | Person person | |
| 3 | Task task | |
| [25] | 4 | EntryType entryType |
| 5 | Date date | |
| [39] | 6 | Integer durationHours = 0 |
| 7 | Integer durationMinutes = 0 | |
| [16] | 8 | String comments |
| 9 | ||
| [21] | 10 | static belongsTo = [EntryType, Task, Person] |
| [18] | 11 | |
| [16] | 12 | static constraints = { |
| [39] | 13 | task() |
| [25] | 14 | comments(maxSize:500) |
| [39] | 15 | date() |
| 16 | durationHours(min:0) | |
| 17 | durationMinutes(min:0,max:59) | |
| 18 | ||
| [16] | 19 | } |
| [50] | 20 | |
| 21 | String toString() { | |
| 22 | "${this.comments}" | |
| 23 | } | |
| [16] | 24 | } |
| 25 |
Note: See TracBrowser
for help on using the repository browser.
