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

Last change on this file since 56 was 35, checked in by gav, 16 years ago

Adjusted constraints and regen-all for Person/Group/Type? and Task/Group?.

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