source: trunk/src/grails-app/domain/Task.groovy @ 93

Last change on this file since 93 was 93, checked in by gav, 15 years ago

Rename Modification and ModificationType? domains to TaskModification? and TaskModificationType? respectively. Re-generate controller and views. Update ERD. It's an evil but a necessary mouthful as we may want to track other modifications later.

File size: 936 bytes
RevLine 
[66]1class Task {
2    TaskGroup taskGroup
3    TaskStatus taskStatus
[69]4    TaskPriority taskPriority
5    TaskType taskType
6    Task    parentTask
[66]7    Person leadPerson
8    String description
9    String comment = ""
10    Date targetStartDate = new Date()
11    Date targetCompletionDate = new Date()
12    boolean isScheduled = false
13    boolean isApproved = false
14    boolean isActive = true
15
[69]16    static hasMany = [entries: Entry, 
[93]17                        taskModifications: TaskModification, 
[69]18                        assignedPersons: Person, 
19                        subTasks: Task]
[66]20
[69]21    static belongsTo = [TaskGroup, TaskStatus, Task, Person]
[66]22
23    static constraints = {
24        targetStartDate()
[91]25        description(blank:false,maxSize:75)
[66]26        leadPerson()
[69]27        taskPriority()
[66]28        taskStatus()
[69]29        parentTask(blank: true, nullable:true)
[66]30        comment(maxSize:255)
[69]31       
[66]32    }
33
34    String toString() {"${this.description}"}
35}
Note: See TracBrowser for help on using the repository browser.