source: trunk/grails-app/domain/Asset.groovy @ 131

Last change on this file since 131 was 131, checked in by gav, 15 years ago

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

File size: 460 bytes
Line 
1class 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.