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

Last change on this file since 56 was 50, checked in by gav, 16 years ago

Trying some different layouts in task edit/create.
Display entries in task show page.
Some more tuning of CSS.

File size: 447 bytes
RevLine 
[16]1class 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.