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

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

Domain change, update constraints on MaintenanceAction.

File size: 728 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 reasoning = ""
11    Integer procedureStepNumber
12
13    Boolean deleted
14    static transients = [ 'deleted' ]
15
16//     static hasMany = []
17
18    static belongsTo = [TaskProcedure]
19
20    static constraints = {
21        section(nullable:true)
22        asset(nullable:true)
23        assetSubItem(nullable:true)
24        maintenancePolicy(nullable:true)
25        procedureStepNumber(nullable:true)
26        description(blank:false,maxSize:100)
27        reasoning(maxSize:100)
28    }
29
30    String toString() {
31        "${this.description}"
32    }
33}
34
Note: See TracBrowser for help on using the repository browser.