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

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

Add costCode attribute to Asset and regen non-detailed controller and views, adjust detailed views to suite.

File size: 484 bytes
Line 
1class Asset {
2
3    SystemSection systemSection
4    AssetType assetType
5
6    String name
7    String description = ""
8    String costCode = ""
9    boolean isActive = true
10
11    static hasMany = [maintenanceActions: MaintenanceAction,
12                                    assetExtendedAttributes: AssetExtendedAttribute]
13
14    static belongsTo = [SystemSection, AssetType]
15
16    static constraints = {
17        name(unique:true)
18    }
19
20    String toString() {
21        "${this.name}"
22    }
23}
24
Note: See TracBrowser for help on using the repository browser.