Changeset 268 for trunk/grails-app/domain/Asset.groovy
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r180 r268 1 1 class Asset { 2 2 3 SystemSection systemSection 4 AssetType assetType 3 Section section 5 4 6 5 String name 7 6 String description = "" 8 String costCode = ""9 7 boolean isActive = true 10 8 11 static hasMany = [maintenanceActions: MaintenanceAction, 9 static hasMany = [assetSubItems: AssetSubItem, 10 maintenanceActions: MaintenanceAction, 12 11 assetExtendedAttributes: AssetExtendedAttribute] 13 12 14 static belongsTo = [S ystemSection, AssetType]13 static belongsTo = [Section] 15 14 16 15 static constraints = { 17 name(unique:true, blank:false) 16 name(maxSize:50, unique:true, blank:false) 17 description(maxSize:100) 18 isActive() 19 section() 18 20 } 19 21
Note: See TracChangeset
for help on using the changeset viewer.