Last change
on this file since 896 was
811,
checked in by gav, 14 years ago
|
Domain change, adjust constraints on MaintenanceAction.
|
File size:
774 bytes
|
Line | |
---|
1 | class 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() |
---|
28 | maintenancePolicy(nullable:true) |
---|
29 | procedureStepNumber() |
---|
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.