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