source:
trunk/src/grails-app/domain/PersonGroupType.groovy
@
35
Last change on this file since 35 was 35, checked in by , 15 years ago | |
---|---|
File size: 319 bytes |
Rev | Line | |
---|---|---|
[21] | 1 | class PersonGroupType { |
2 | String name | |
3 | String description = "" | |
4 | boolean isActive = true | |
5 | ||
6 | static hasMany = [personGroups : PersonGroup] | |
7 | ||
[35] | 8 | static constraints = { |
9 | name(maxSize:50,unique:true,blank:false) | |
10 | description(maxSize:100) | |
11 | } | |
12 | ||
[21] | 13 | String toString() { |
14 | "${this.name}" | |
15 | } | |
16 | } |
Note: See TracBrowser
for help on using the repository browser.