Changeset 122 for trunk/grails-app/domain
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 1 added
- 8 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Asset.groovy
r121 r122 1 1 class Asset { 2 2 3 SystemSection systemSection 3 4 AssetType assetType 5 4 6 String name 5 7 String description = "" … … 8 10 static hasMany = [maintenanceActions: MaintenanceAction] 9 11 10 static belongsTo = [SystemSection ]12 static belongsTo = [SystemSection, AssetType] 11 13 12 14 // static constraints = { -
trunk/grails-app/domain/AssetExtendedAttribute.groovy
r121 r122 2 2 3 3 AssetType assetType 4 AssetExtendedAttributeType assetExtendedAttributeType 4 5 5 String name6 String description = ""7 6 String value 8 7 boolean isActive = true … … 17 16 18 17 String toString() { 19 "${this. name}"18 "${this.value}" 20 19 } 21 20 } -
trunk/grails-app/domain/AssetType.groovy
r121 r122 5 5 boolean isActive = true 6 6 7 static hasMany = [assets: Asset, assemblies: Assembly, assetExtendedAttributes: AssetExtendedAttribute, maintenanceActions: MaintenanceAction] 7 static hasMany = [assets: Asset, 8 assemblies: Assembly, 9 assetExtendedAttributes: AssetExtendedAttribute, 10 maintenanceActions: MaintenanceAction] 8 11 9 12 // static belongsTo = [] -
trunk/grails-app/domain/ComponentItem.groovy
r121 r122 1 1 class ComponentItem { 2 2 3 String name 3 4 String description = "" -
trunk/grails-app/domain/MaintenanceAction.groovy
r121 r122 2 2 MaintenancePolicy maintenancePolicy 3 3 PlannedMaintenance plannedMaintenance 4 SystemSection 4 SystemSection systemSection 5 5 Asset asset 6 6 AssetType assetType … … 16 16 static belongsTo = [PlannedMaintenance] 17 17 18 // static constraints = { 19 // 20 // } 18 static constraints = { 19 systemSection(blank:true, nullable:true) 20 asset(blank:true, nullable:true) 21 assetType(blank:true, nullable:true) 22 assembly(blank:true, nullable:true) 23 subAssembly(blank:true, nullable:true) 24 componentItem(blank:true, nullable:true) 25 } 21 26 22 27 String toString() { -
trunk/grails-app/domain/MaintenancePolicy.groovy
r121 r122 12 12 // } 13 13 14 //String toString() {15 //"${this.name}"16 //}14 String toString() { 15 "${this.name}" 16 } 17 17 } 18 18 -
trunk/grails-app/domain/Period.groovy
r120 r122 1 class Frequency{2 String frequency1 class Period { 2 String period 3 3 boolean isActive = true 4 4 5 static hasMany = [ lifePlans: LifePlan]5 static hasMany = [recurringSchedules: RecurringSchedule] 6 6 // 7 7 // static belongsTo = [] … … 12 12 13 13 String toString() { 14 "${this. frequency}"14 "${this.period}" 15 15 } 16 16 } -
trunk/grails-app/domain/RecurringSchedule.groovy
r121 r122 1 1 class RecurringSchedule { 2 2 3 Task task 4 Period period 3 5 PlannedMaintenance plannedMaintenance 4 Period period5 Task task6 6 7 7 Integer recurEvery … … 13 13 static belongsTo = [Task] 14 14 15 // static constraints = { 16 // } 15 static constraints = { 16 plannedMaintenance(blank:true, nullable:true) 17 } 17 18 18 19 // String toString() { -
trunk/grails-app/domain/Task.groovy
r121 r122 36 36 comment() 37 37 primaryAsset(blank: true, nullable:true) 38 recurringSchedule(blank: true, nullable:true) 38 39 39 40 }
Note: See TracChangeset
for help on using the changeset viewer.