source:
trunk/grails-app/domain/Authority.groovy
@
412
| Last change on this file since 412 was 167, checked in by , 16 years ago | |
|---|---|
| File size: 312 bytes | |
| Rev | Line | |
|---|---|---|
| [58] | 1 | class Authority { |
| 2 | ||
| [167] | 3 | static hasMany = [persons: Person] |
| [58] | 4 | |
| [167] | 5 | /** description */ |
| 6 | String description | |
| 7 | /** ROLE String */ | |
| 8 | String authority | |
| [58] | 9 | |
| [167] | 10 | static constraints = { |
| 11 | authority(blank: false, unique: true) | |
| 12 | description() | |
| 13 | } | |
| [147] | 14 | |
| 15 | String toString() { | |
| 16 | "${this.authority}" | |
| 17 | } | |
| [58] | 18 | } |
Note: See TracBrowser
for help on using the repository browser.
