source: trunk/grails-app/domain/PersonGroup.groovy @ 955

Last change on this file since 955 was 166, checked in by gav, 15 years ago

Add test and message for no granted authority to LoginController.
Correct belongsTo in Person-PersonGroup? relationship.
Re-generate PersonGroup? controller and views.
Add more help balloon messages for Person and Task.
Default ROLE_AppUser to ON when creating a person.

File size: 374 bytes
Line 
1class PersonGroup {
2    PersonGroupType personGroupType
3    String name
4    String description = ""
5    boolean isActive = true
6
7    static hasMany = [persons : Person]
8
9    static belongsTo = [Person]
10
11    static constraints = {
12        name(maxSize:50,unique:true,blank:false)
13        description(maxSize:100)
14    }
15
16    String toString() {
17        "${this.name}"
18    }
19}
Note: See TracBrowser for help on using the repository browser.