- Timestamp:
- Feb 7, 2011, 3:43:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/domain/TaskProcedure.groovy
r772 r793 14 14 15 15 List maintenanceActions = new ArrayList() 16 List documentReferences = new ArrayList() 16 17 17 static hasMany = [tasks: Task, maintenanceActions: MaintenanceAction] 18 static hasMany = [tasks: Task, 19 maintenanceActions: MaintenanceAction, 20 documentReferences: DocumentReference] 18 21 19 22 def getMaintenanceActionLazyList() { 20 23 return LazyList.decorate(maintenanceActions, FactoryUtils.instantiateFactory(MaintenanceAction.class)) 24 } 25 26 def getDocumentReferenceLazyList() { 27 return LazyList.decorate(documentReferences, FactoryUtils.instantiateFactory(DocumentReference.class)) 21 28 } 22 29 … … 25 32 static mapping = { 26 33 maintenanceActions cascade:"all-delete-orphan" 34 documentReferences cascade:"all-delete-orphan" 27 35 } 28 36
Note: See TracChangeset
for help on using the changeset viewer.