|
Last change
on this file since 901 was
821,
checked in by gav, 15 years ago
|
|
Domain change, add ConditionSeverity.
|
|
File size:
339 bytes
|
| Rev | Line | |
|---|
| [821] | 1 | class ConditionSeverity { |
|---|
| 2 | String code |
|---|
| 3 | String recommendation = "" |
|---|
| 4 | boolean isActive = true |
|---|
| 5 | |
|---|
| 6 | // static hasMany = [] |
|---|
| 7 | |
|---|
| 8 | static constraints = { |
|---|
| 9 | code(maxSize:5,unique:true,blank:false) |
|---|
| 10 | recommendation(maxSize:25,blank:false) |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | String toString() { |
|---|
| 14 | "${this.code} - ${this.recommendation}" |
|---|
| 15 | } |
|---|
| 16 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.