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