source:
trunk/grails-app/domain/MaintenanceAction.groovy
Last change on this file was 913, checked in by , 14 years ago | |
---|---|
File size: 774 bytes |
Rev | Line | |
---|---|---|
[131] | 1 | class MaintenanceAction { |
2 | ||
[121] | 3 | MaintenancePolicy maintenancePolicy |
[268] | 4 | Section section |
[121] | 5 | Asset asset |
[268] | 6 | AssetSubItem assetSubItem |
[131] | 7 | |
8 | String description | |
[798] | 9 | String pageRef = "" |
[131] | 10 | Integer procedureStepNumber |
[118] | 11 | |
[798] | 12 | Boolean toBeDeleted |
13 | Boolean isNew | |
14 | static transients = [ 'toBeDeleted', 'isNew' ] | |
15 | ||
[121] | 16 | // static hasMany = [] |
17 | ||
[809] | 18 | static mapping = { |
19 | batchSize 10 | |
20 | } | |
[121] | 21 | |
[809] | 22 | static belongsTo = [TaskProcedure, TaskProcedureRevision] |
23 | ||
[122] | 24 | static constraints = { |
[268] | 25 | section(nullable:true) |
26 | asset(nullable:true) | |
[811] | 27 | assetSubItem() |
[146] | 28 | maintenancePolicy(nullable:true) |
[811] | 29 | procedureStepNumber() |
[798] | 30 | description(blank:false,maxSize:100) |
[809] | 31 | pageRef(maxSize:25) |
[122] | 32 | } |
[118] | 33 | |
34 | String toString() { | |
[131] | 35 | "${this.description}" |
[118] | 36 | } |
37 | } | |
38 |
Note: See TracBrowser
for help on using the repository browser.