source: trunk/grails-app/domain/Authority.groovy @ 791

Last change on this file since 791 was 167, checked in by gav, 15 years ago

Format to 4 spaces, no tabs.

File size: 312 bytes
Line 
1class 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.