source:
trunk/grails-app/domain/PurchasingGroup.groovy
@
889
Last change on this file since 889 was 633, checked in by , 14 years ago | |
---|---|
File size: 399 bytes |
Line | |
---|---|
1 | class PurchasingGroup { |
2 | String name |
3 | String description = "" |
4 | boolean isActive = true |
5 | |
6 | static hasMany = [persons : Person, |
7 | costCodes: CostCode] |
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.