Last change
on this file since 121 was
121,
checked in by gav, 16 years ago
|
Extensive update to Asset ERD and associated domain classes, not compiled or tested.
|
File size:
341 bytes
|
Rev | Line | |
---|
[116] | 1 | class Asset { |
---|
[121] | 2 | SystemSection systemSection |
---|
[118] | 3 | AssetType assetType |
---|
[116] | 4 | String name |
---|
| 5 | String description = "" |
---|
| 6 | boolean isActive = true |
---|
| 7 | |
---|
[121] | 8 | static hasMany = [maintenanceActions: MaintenanceAction] |
---|
| 9 | |
---|
| 10 | static belongsTo = [SystemSection] |
---|
| 11 | |
---|
[116] | 12 | // static constraints = { |
---|
| 13 | // } |
---|
| 14 | |
---|
| 15 | String toString() { |
---|
| 16 | "${this.name}" |
---|
| 17 | } |
---|
| 18 | } |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.