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

Last change on this file since 21 was 18, checked in by tuxta, 16 years ago

Align domain classes to ERD.

File size: 385 bytes
Line 
1class Task {
2    TaskGroup taskGroup
3    Person person
4    String name
5    String description
6    Date scheduledDate
7    Date targetDate
8
9    static hasMany = [entries: Entry, modifications : Modification]
10
11    static belongsTo = [TaskGroup, Person]
12
13    static constraints = {
14        name(blank:false)
15        description(blank:false)
16    }
17
18    String toString() {"${this.name}"}
19}
Note: See TracBrowser for help on using the repository browser.