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

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

Setup Boostrap and DataSource? so that we have demo data in prod env for deployin
g demo. Adjust the entry domain and rebuild views and controller.

File size: 389 bytes
Line 
1class Entry {
2    Person person
3    Task task
4    EntryType entryType
5    Date date
6    Integer durationHours = 0
7    Integer durationMinutes = 0
8    String comments
9
10    static belongsTo = [EntryType, Task, Person]
11
12    static constraints = {
13        task()
14        comments(maxSize:500)
15        date()
16        durationHours(min:0)
17        durationMinutes(min:0,max:59)
18       
19    }
20}
21
Note: See TracBrowser for help on using the repository browser.