Last change
on this file since 393 was
268,
checked in by gav, 15 years ago
|
Refactor classes for asset tree refinement.
Regenerate views and controllers to suite.
|
File size:
388 bytes
|
Rev | Line | |
---|
[121] | 1 | class MaintenancePolicy { |
---|
| 2 | |
---|
| 3 | String name |
---|
| 4 | String description = "" |
---|
| 5 | boolean isActive = true |
---|
| 6 | |
---|
[268] | 7 | // static hasMany = [maintenanceActions: MaintenanceAction] |
---|
[121] | 8 | |
---|
| 9 | // static belongsTo = [] |
---|
| 10 | |
---|
[268] | 11 | static constraints = { |
---|
| 12 | name(maxSize:50, unique:true, blank:false) |
---|
| 13 | description(maxSize:100) |
---|
| 14 | isActive() |
---|
| 15 | } |
---|
[121] | 16 | |
---|
[122] | 17 | String toString() { |
---|
| 18 | "${this.name}" |
---|
| 19 | } |
---|
[121] | 20 | } |
---|
| 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.