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

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

Align domain classes to ERD.

File size: 385 bytes
RevLine 
[16]1class Task {
2    TaskGroup taskGroup
[18]3    Person person
[16]4    String name
5    String description
[18]6    Date scheduledDate
7    Date targetDate
[16]8
[18]9    static hasMany = [entries: Entry, modifications : Modification]
[16]10
[18]11    static belongsTo = [TaskGroup, Person]
[16]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.