- class Code {
- String codName
- String codValue1
- String codValue2
- String codValue3
- String codValue4
- static belongsTo = [ckind: Ckind]
- String toString() {
- "${this.codName}"
- }
- static constraints = {
- codName(maxSize:20,blank:false)
- codValue1(maxSize:40,nullable:true)
- codValue2(maxSize:2000,nullable:true)
- codValue3(maxSize:40,nullable:true)
- codValue4(maxSize:40,nullable:true)
- }
- }