source:
trunk/grails-app/domain/Asset.groovy
@
156
Last change on this file since 156 was 131, checked in by , 16 years ago | |
---|---|
File size: 460 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 | ||
[131] | 10 | static hasMany = [maintenanceActions: MaintenanceAction, |
11 | assetExtendedAttributes: AssetExtendedAttribute] | |
[121] | 12 | |
[122] | 13 | static belongsTo = [SystemSection, AssetType] |
[121] | 14 | |
[124] | 15 | static constraints = { |
16 | name(unique:true) | |
17 | } | |
[116] | 18 | |
19 | String toString() { | |
20 | "${this.name}" | |
21 | } | |
22 | } | |
23 |
Note: See TracBrowser
for help on using the repository browser.