- Timestamp:
- Jan 26, 2011, 5:35:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.