source:
trunk/src/grails-app/domain/TypeOfModification.groovy
@
19
Last change on this file since 19 was 19, checked in by , 15 years ago | |
---|---|
File size: 286 bytes |
Rev | Line | |
---|---|---|
[16] | 1 | class TypeOfModification { |
2 | String name | |
3 | String description | |
4 | boolean isActive | |
5 | ||
6 | static hasMany = [modifications : Modification] | |
7 | ||
[18] | 8 | static constraints = { |
9 | name() | |
10 | description() | |
11 | isActive() | |
12 | } | |
[19] | 13 | |
14 | String toString() { | |
15 | "${this.name}" | |
16 | } | |
[16] | 17 | } |
Note: See TracBrowser
for help on using the repository browser.