Changeset 124 for trunk/grails-app/domain
- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r122 r124 8 8 boolean isActive = true 9 9 10 static hasMany = [maintenanceActions: MaintenanceAction ]10 static hasMany = [maintenanceActions: MaintenanceAction, assetExtendedAttributes: AssetExtendedAttribute] 11 11 12 12 static belongsTo = [SystemSection, AssetType] 13 13 14 // static constraints = { 15 // } 14 static constraints = { 15 name(unique:true) 16 } 16 17 17 18 String toString() { -
trunk/grails-app/domain/AssetExtendedAttribute.groovy
r122 r124 1 1 class AssetExtendedAttribute { 2 2 3 Asset Type assetType3 Asset asset 4 4 AssetExtendedAttributeType assetExtendedAttributeType 5 5 … … 9 9 // static hasMany = [] 10 10 11 static belongsTo = [Asset Type]11 static belongsTo = [Asset] 12 12 13 13 // static constraints = { … … 16 16 17 17 String toString() { 18 "${ this.value}"18 "${assetExtendedAttributeType.name}: ${this.value}" 19 19 } 20 20 } -
trunk/grails-app/domain/AssetType.groovy
r122 r124 6 6 7 7 static hasMany = [assets: Asset, 8 assemblies: Assembly, 9 assetExtendedAttributes: AssetExtendedAttribute, 8 assemblies: Assembly, 10 9 maintenanceActions: MaintenanceAction] 11 10 -
trunk/grails-app/domain/MaintenanceAction.groovy
r122 r124 8 8 SubAssembly subAssembly 9 9 ComponentItem componentItem 10 String description10 String maintenanceAction 11 11 String reasoning = "" 12 Integer pmStepNumber 12 13 boolean isActive = true 13 14 … … 23 24 subAssembly(blank:true, nullable:true) 24 25 componentItem(blank:true, nullable:true) 26 pmStepNumber(blank:true, nullable:true) 25 27 } 26 28 27 29 String toString() { 28 "${this. description}"30 "${this.action}" 29 31 } 30 32 } -
trunk/grails-app/domain/RecurringSchedule.groovy
r123 r124 21 21 } 22 22 23 //String toString() {24 // "${this.name}"25 //}23 String toString() { 24 "Recur every ${recurEvery} ${period}" 25 } 26 26 } 27 27
Note: See TracChangeset
for help on using the changeset viewer.