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

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

Format to 4 spaces, no tabs.

File size: 312 bytes
RevLine 
[58]1class 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.