|
Last change
on this file since 66 was
66,
checked in by gav, 17 years ago
|
|
Add domains Entry, Task, Modification with task rewrites and associated Types/Status? etc.
Generate controllers and views.
Update Bootstrap.groovy and Person.groovy to suite.
|
|
File size:
677 bytes
|
| Line | |
|---|
| 1 | class Task { |
|---|
| 2 | TaskGroup taskGroup |
|---|
| 3 | TaskStatus taskStatus |
|---|
| 4 | Person leadPerson |
|---|
| 5 | String description |
|---|
| 6 | String comment = "" |
|---|
| 7 | Date targetStartDate = new Date() |
|---|
| 8 | Date targetCompletionDate = new Date() |
|---|
| 9 | boolean isScheduled = false |
|---|
| 10 | boolean isApproved = false |
|---|
| 11 | boolean isActive = true |
|---|
| 12 | |
|---|
| 13 | static hasMany = [entries: Entry, modifications: Modification, assignedPersons: Person] |
|---|
| 14 | |
|---|
| 15 | static belongsTo = [TaskGroup, TaskStatus, Person] |
|---|
| 16 | |
|---|
| 17 | static constraints = { |
|---|
| 18 | targetStartDate() |
|---|
| 19 | description(blank:false,maxSize:50) |
|---|
| 20 | leadPerson() |
|---|
| 21 | taskStatus() |
|---|
| 22 | comment(maxSize:255) |
|---|
| 23 | } |
|---|
| 24 | |
|---|
| 25 | String toString() {"${this.description}"} |
|---|
| 26 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.