source: trunk/grails-app/domain/MaintenanceAction.groovy @ 809

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

Domain change, first draft of TaskProcedureRevisions.

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