Last change
on this file since 139 was
92,
checked in by duh, 13 years ago
|
- added sample template data in bootstrap
- upgraded jQuery
- improved study capture wizard
- fixed selenium test
|
File size:
553 bytes
|
Rev | Line | |
---|
[77] | 1 | package dbnp.studycapturing |
---|
| 2 | |
---|
[84] | 3 | /** |
---|
| 4 | * The Template class describes a study template, which is basically an extension of the study capture entities |
---|
| 5 | * in terms of extra fields (described by classes that extend the TemplateField class). |
---|
| 6 | * At this moment, only extension of the subject entity is implemented. |
---|
| 7 | */ |
---|
[77] | 8 | class Template { |
---|
| 9 | |
---|
| 10 | String name |
---|
[92] | 11 | //nimble.User owner |
---|
[84] | 12 | |
---|
| 13 | static hasMany = [subjectFields : TemplateSubjectField] |
---|
[77] | 14 | |
---|
| 15 | static constraints = { |
---|
[80] | 16 | name(unique:true) |
---|
[77] | 17 | } |
---|
[80] | 18 | |
---|
| 19 | def String toString() { |
---|
| 20 | return this.name; |
---|
| 21 | } |
---|
[77] | 22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.