Ignore:
Timestamp:
Feb 7, 2011, 3:43:55 PM (14 years ago)
Author:
gav
Message:

Domain change, add DocumentReference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/domain/TaskProcedure.groovy

    r772 r793  
    1414
    1515    List maintenanceActions = new ArrayList()
     16    List documentReferences = new ArrayList()
    1617
    17     static hasMany = [tasks: Task, maintenanceActions: MaintenanceAction]
     18    static hasMany = [tasks: Task,
     19                                    maintenanceActions: MaintenanceAction,
     20                                    documentReferences: DocumentReference]
    1821
    1922    def getMaintenanceActionLazyList() {
    2023        return LazyList.decorate(maintenanceActions, FactoryUtils.instantiateFactory(MaintenanceAction.class))
     24    }
     25
     26    def getDocumentReferenceLazyList() {
     27        return LazyList.decorate(documentReferences, FactoryUtils.instantiateFactory(DocumentReference.class))
    2128    }
    2229
     
    2532    static mapping = {
    2633        maintenanceActions cascade:"all-delete-orphan"
     34        documentReferences cascade:"all-delete-orphan"
    2735    }
    2836
Note: See TracChangeset for help on using the changeset viewer.