Changeset 760 for branches/features/taskProcedureRework/grails-app/domain
- Timestamp:
- Jan 26, 2011, 5:35:35 AM (14 years ago)
- Location:
- branches/features/taskProcedureRework/grails-app/domain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy
r756 r760 10 10 String reasoning = "" 11 11 Integer procedureStepNumber 12 13 boolean deleted 14 static transients = [ 'deleted' ] 12 15 13 16 // static hasMany = [] -
branches/features/taskProcedureRework/grails-app/domain/TaskProcedure.groovy
r758 r760 1 import org.apache.commons.collections.list.LazyList; 2 import org.apache.commons.collections.FactoryUtils; 3 1 4 class TaskProcedure { 2 5 3 6 Task parentTask 4 7 List maintenanceActions = new ArrayList() 5 8 static hasMany = [tasks: Task, maintenanceActions: MaintenanceAction] 6 9 7 10 static mappedBy = [tasks:"taskProcedure"] 11 12 static mapping = { 13 maintenanceActions cascade:"all,delete-orphan" 14 } 8 15 9 16 // static belongsTo = [] … … 15 22 "${this.id}" 16 23 } 24 25 def getExpandableMaintenanceActionList() { 26 return LazyList.decorate(maintenanceActions, FactoryUtils.instantiateFactory(MaintenanceAction.class)) 27 } 17 28 }
Note: See TracChangeset
for help on using the changeset viewer.