Last change
on this file since 964 was
809,
checked in by gav, 14 years ago
|
Domain change, first draft of TaskProcedureRevisions.
|
File size:
488 bytes
|
Line | |
---|
1 | class DocumentReference { |
---|
2 | |
---|
3 | String name |
---|
4 | String location |
---|
5 | |
---|
6 | Boolean toBeDeleted |
---|
7 | Boolean isNew |
---|
8 | static transients = [ 'toBeDeleted', 'isNew' ] |
---|
9 | |
---|
10 | // static hasMany = [] |
---|
11 | |
---|
12 | static belongsTo = [TaskProcedure, TaskProcedureRevision] |
---|
13 | |
---|
14 | static mapping = { |
---|
15 | batchSize 10 |
---|
16 | } |
---|
17 | |
---|
18 | static constraints = { |
---|
19 | name(blank:false,maxSize:75) |
---|
20 | location(blank:false,maxSize:500) |
---|
21 | } |
---|
22 | |
---|
23 | String toString() { |
---|
24 | "${this.name} - ${this.location}" |
---|
25 | } |
---|
26 | } |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.