source: branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy @ 788

Last change on this file since 788 was 788, checked in by gav, 13 years ago

Domain change, MaintenanceAction.reasoning to pageRef.

File size: 759 bytes
RevLine 
[131]1class MaintenanceAction {
2
3    TaskProcedure taskProcedure
[121]4    MaintenancePolicy maintenancePolicy
[268]5    Section section
[121]6    Asset asset
[268]7    AssetSubItem assetSubItem
[131]8
9    String description
[788]10    String pageRef = ""
[131]11    Integer procedureStepNumber
[118]12
[770]13    Boolean toBeDeleted
14    Boolean isNew
15    static transients = [ 'toBeDeleted', 'isNew' ]
[760]16
[121]17//     static hasMany = []
18
[756]19    static belongsTo = [TaskProcedure]
[121]20
[122]21    static constraints = {
[268]22        section(nullable:true)
23        asset(nullable:true)
24        assetSubItem(nullable:true)
[146]25        maintenancePolicy(nullable:true)
26        procedureStepNumber(nullable:true)
[769]27        description(blank:false,maxSize:100)
[788]28        pageRef(maxSize:100)
[122]29    }
[118]30
31    String toString() {
[131]32        "${this.description}"
[118]33    }
34}
35
Note: See TracBrowser for help on using the repository browser.