Last change
on this file since 540 was
540,
checked in by duh, 13 years ago
|
- fixed indentation shite!!!
- samples dev commit
|
-
Property svn:keywords set to
Date Rev Author
|
File size:
914 bytes
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | import dbnp.data.Term |
---|
4 | import dbnp.data.Ontology |
---|
5 | |
---|
6 | /** |
---|
7 | * This domain class describes the subjects in a study. |
---|
8 | * |
---|
9 | * Revision information: |
---|
10 | * $Rev: 540 $ |
---|
11 | * $Author: duh $ |
---|
12 | * $Date: 2010-06-08 11:04:08 +0000 (di, 08 jun 2010) $ |
---|
13 | */ |
---|
14 | class Subject extends TemplateEntity implements Serializable { |
---|
15 | static searchable = true |
---|
16 | String name |
---|
17 | Term species |
---|
18 | |
---|
19 | /** |
---|
20 | * return the domain fields for this domain class |
---|
21 | * @return List |
---|
22 | */ |
---|
23 | static List<TemplateField> giveDomainFields() { return Subject.domainFields; } |
---|
24 | |
---|
25 | static List<TemplateField> domainFields = [ |
---|
26 | new TemplateField( |
---|
27 | name: 'name', |
---|
28 | type: TemplateFieldType.STRING, |
---|
29 | preferredIdentifier: true, |
---|
30 | comment: 'Use the local subject name or the pre-defined name'), |
---|
31 | new TemplateField( |
---|
32 | name: 'species', |
---|
33 | type: TemplateFieldType.ONTOLOGYTERM, |
---|
34 | comment: "The species name is based on the NEWT ontology; if a species is missing, please add it to the ontology using 'add more'") |
---|
35 | ] |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.