Last change
on this file since 20 was
18,
checked in by tuxta, 16 years ago
|
Align domain classes to ERD.
|
File size:
384 bytes
|
Rev | Line | |
---|
[16] | 1 | class Entry { |
---|
| 2 | Person person |
---|
| 3 | Task task |
---|
| 4 | Date dateTime |
---|
| 5 | Integer duration |
---|
| 6 | String comments |
---|
| 7 | |
---|
[18] | 8 | static hasMany = [persons: Person] |
---|
[16] | 9 | |
---|
[18] | 10 | static belongsTo = [TypeOfEntry, Task, Person] |
---|
| 11 | |
---|
[16] | 12 | static constraints = { |
---|
| 13 | person(blank:false) |
---|
| 14 | task(blank:false) |
---|
| 15 | dateTime(nullable:true) |
---|
| 16 | duration(nullable:true) |
---|
| 17 | comments(maxLength:500) |
---|
| 18 | } |
---|
| 19 | } |
---|
| 20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.