source:
branches/TaskRewrite/src/grails-app/domain/TaskPriority.groovy
@
69
| Last change on this file since 69 was 69, checked in by , 17 years ago | |
|---|---|
| File size: 288 bytes | |
| Rev | Line | |
|---|---|---|
| [69] | 1 | class TaskPriority { |
| 2 | String name | |
| 3 | String description = "" | |
| 4 | boolean isActive = true | |
| 5 | ||
| 6 | static hasMany = [tasks : Task] | |
| 7 | ||
| 8 | static constraints = { | |
| 9 | name(maxSize:50,unique:true,blank:false) | |
| 10 | description(maxSize:100) | |
| 11 | } | |
| 12 | ||
| 13 | String toString() {"${this.name}"} | |
| 14 | } |
Note: See TracBrowser
for help on using the repository browser.
