source: branches/TaskRewrite/src/grails-app/domain/Entry.groovy @ 66

Last change on this file since 66 was 66, checked in by gav, 15 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: 548 bytes
Line 
1class Entry {
2    Person enteredBy
3    Task task
4    EntryType entryType
5    String comment
6    Date dateDone = new Date()
7    Date dateEntered = new Date()
8    Integer durationHour = 0
9    Integer durationMinute = 0
10
11    static belongsTo = [EntryType, Task, Person]
12
13    static constraints = {
14        task()
15        comment(blank:false,maxSize:500)
16        dateDone()
17        durationHour(min:0)
18        durationMinute(min:0,max:59)
19       
20    }
21
22    String toString() {
23        "${this.comment} - ${this.enteredBy}, ${this.dateDone}"
24    }
25}
26
Note: See TracBrowser for help on using the repository browser.