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

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

Domain change, remove unused field and tweak MaintenanceAction?.

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