source:
trunk/grails-app/domain/TaskProcedure.groovy
@
172
Last change on this file since 172 was 131, checked in by , 16 years ago | |
---|---|
File size: 372 bytes |
Line | |
---|---|
1 | class TaskProcedure { |
2 | |
3 | String name |
4 | String description = "" |
5 | Boolean isActive = true |
6 | |
7 | static hasMany = [tasks: Task, maintenanceActions: MaintenanceAction] |
8 | |
9 | // static belongsTo = [] |
10 | |
11 | static constraints = { |
12 | name(maxSize:75,unique:true,blank:false) |
13 | description(maxSize:100) |
14 | } |
15 | |
16 | String toString() { |
17 | "${this.name}" |
18 | } |
19 | } |
Note: See TracBrowser
for help on using the repository browser.