Last change
on this file since 964 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
|
Line | |
---|
1 | class Department { |
---|
2 | |
---|
3 | String name |
---|
4 | String description = "" |
---|
5 | String comment = "" |
---|
6 | boolean isActive = true |
---|
7 | |
---|
8 | static hasMany = [sections: Section, |
---|
9 | departmentExtendedAttributes: DepartmentExtendedAttribute, |
---|
10 | persons: Person] |
---|
11 | |
---|
12 | // static belongsTo = [] |
---|
13 | |
---|
14 | static constraints = { |
---|
15 | name(maxSize:50, unique:true, blank:false) |
---|
16 | description(maxSize:75) |
---|
17 | comment(maxSize:500) |
---|
18 | isActive() |
---|
19 | } |
---|
20 | |
---|
21 | String toString() { |
---|
22 | "${this.name}" |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.