source:
trunk/grails-app/domain/DocumentReference.groovy
@
808
| Last change on this file since 808 was 798, checked in by , 15 years ago | |
|---|---|
| File size: 414 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 | ||
| 12 | static belongsTo = [TaskProcedure] | |
| 13 | ||
| 14 | static constraints = { | |
| 15 | name(blank:false,maxSize:75) | |
| 16 | location(blank:false,maxSize:500) | |
| 17 | } | |
| 18 | ||
| 19 | String toString() { | |
| 20 | "${this.name} - ${this.location}" | |
| 21 | } | |
| 22 | } | |
| 23 |
Note: See TracBrowser
for help on using the repository browser.
