source: trunk/grails-app/domain/ConditionSeverity.groovy @ 834

Last change on this file since 834 was 821, checked in by gav, 14 years ago

Domain change, add ConditionSeverity.

File size: 339 bytes
RevLine 
[821]1class 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.