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