|
Last change
on this file since 928 was
809,
checked in by gav, 15 years ago
|
|
Domain change, first draft of TaskProcedureRevisions.
|
|
File size:
488 bytes
|
| Rev | Line | |
|---|
| [793] | 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 | |
|---|
| [809] | 12 | static belongsTo = [TaskProcedure, TaskProcedureRevision] |
|---|
| [793] | 13 | |
|---|
| [809] | 14 | static mapping = { |
|---|
| 15 | batchSize 10 |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| [793] | 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.