Last change
on this file since 613 was
333,
checked in by gav, 15 years ago
|
Add comment attribute to Department and limit description to 75 char.
Update detailed views to suite.
|
File size:
550 bytes
|
Rev | Line | |
---|
[162] | 1 | class Department { |
---|
| 2 | |
---|
| 3 | String name |
---|
| 4 | String description = "" |
---|
[333] | 5 | String comment = "" |
---|
[162] | 6 | boolean isActive = true |
---|
| 7 | |
---|
[268] | 8 | static hasMany = [sections: Section, |
---|
| 9 | departmentExtendedAttributes: DepartmentExtendedAttribute, |
---|
| 10 | persons: Person] |
---|
[162] | 11 | |
---|
| 12 | // static belongsTo = [] |
---|
| 13 | |
---|
[164] | 14 | static constraints = { |
---|
[268] | 15 | name(maxSize:50, unique:true, blank:false) |
---|
[333] | 16 | description(maxSize:75) |
---|
| 17 | comment(maxSize:500) |
---|
[164] | 18 | isActive() |
---|
| 19 | } |
---|
[162] | 20 | |
---|
| 21 | String toString() { |
---|
| 22 | "${this.name}" |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.