Last change
on this file since 394 was
394,
checked in by keesvb, 11 years ago
|
added ontology specifications to Subject species and Sample material domain fields
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
719 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: 394 $ |
---|
11 | * $Author: keesvb $ |
---|
12 | * $Date: 2010-05-04 15:45:23 +0000 (di, 04 mei 2010) $ |
---|
13 | */ |
---|
14 | class Subject extends TemplateEntity implements Serializable { |
---|
15 | static searchable = true |
---|
16 | String name |
---|
17 | Term species |
---|
18 | |
---|
19 | List<TemplateField> giveDomainFields() { |
---|
20 | [ new TemplateField( |
---|
21 | name: 'name', |
---|
22 | type: TemplateFieldType.STRING), |
---|
23 | new TemplateField( |
---|
24 | name: 'species', |
---|
25 | type: TemplateFieldType.ONTOLOGYTERM, |
---|
26 | ontologies: [Ontology.findByNcboId(1132)]) ]; |
---|
27 | } |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.