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