source: trunk/grails-app/domain/Entry.groovy @ 406

Last change on this file since 406 was 98, checked in by gav, 16 years ago

Installed help-balloons plugin.
Adjust security config to allow javascript and help-balloons folders.
Add "Repeat password" to change password.
Detailed Entry views, including only allow user to edit their own entries.
Adjust Entry constraints.
Add comments to layouts/main.gsp.
Work on TaskDetailed? view to show entry durations and allow editing.
Entry duration formatting to CSS and increased base font size to 14px.

File size: 555 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,max:16)
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.