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

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

Domain change, MaintenanceAction.reasoning to pageRef.

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