source:
trunk/grails-app/domain/Asset.groovy
@
122
Last change on this file since 122 was 122, checked in by , 15 years ago | |
---|---|
File size: 354 bytes |
Rev | Line | |
---|---|---|
[116] | 1 | class Asset { |
[122] | 2 | |
[121] | 3 | SystemSection systemSection |
[118] | 4 | AssetType assetType |
[122] | 5 | |
[116] | 6 | String name |
7 | String description = "" | |
8 | boolean isActive = true | |
9 | ||
[121] | 10 | static hasMany = [maintenanceActions: MaintenanceAction] |
11 | ||
[122] | 12 | static belongsTo = [SystemSection, AssetType] |
[121] | 13 | |
[116] | 14 | // static constraints = { |
15 | // } | |
16 | ||
17 | String toString() { | |
18 | "${this.name}" | |
19 | } | |
20 | } | |
21 |
Note: See TracBrowser
for help on using the repository browser.