Last change
on this file since 392 was
392,
checked in by keesvb, 11 years ago
|
switched back from the fancy 'integrate domain fields as system fields directly into the Template object at the time of creation' method to the plain 'implement getFieldValue, setFieldValue and giveFields to work for both domain and template fields'. NB: this might affect Events, since until now startTime and endTime were moved directly into template! Switch any Event.template.fields to Event.giveFields()
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
622 bytes
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | import dbnp.data.Term |
---|
4 | |
---|
5 | /** |
---|
6 | * This domain class describes the subjects in a study. |
---|
7 | * |
---|
8 | * Revision information: |
---|
9 | * $Rev: 392 $ |
---|
10 | * $Author: keesvb $ |
---|
11 | * $Date: 2010-05-04 15:03:21 +0000 (di, 04 mei 2010) $ |
---|
12 | */ |
---|
13 | class Subject extends TemplateEntity implements Serializable { |
---|
14 | static searchable = true |
---|
15 | String name |
---|
16 | Term species |
---|
17 | |
---|
18 | List<TemplateField> giveDomainFields() { |
---|
19 | [ new TemplateField( |
---|
20 | name: 'name', |
---|
21 | type: TemplateFieldType.STRING), |
---|
22 | new TemplateField( |
---|
23 | name: 'species', |
---|
24 | type: TemplateFieldType.ONTOLOGYTERM) ]; |
---|
25 | } |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.