source: trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy @ 397

Last change on this file since 397 was 397, checked in by duh, 10 years ago
  • reformatted source code
  • added mega huge big ASCII comments to UNDOCUMMENTED of not properly DOCUMENTED classess... we have agreed many many MANY times that everyone should document their code according to JavaDoc? style... but why does nobody do it, or just keep SLACKING! /annoyed modus
  • Property svn:keywords set to Date Author Rev
File size: 633 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4import dbnp.data.Ontology
5
6/**
7 * This domain class describes the subjects in a study.
8 *
9 * Revision information:
10 * $Rev: 397 $
11 * $Author: duh $
12 * $Date: 2010-05-07 12:53:11 +0000 (vr, 07 mei 2010) $
13 */
14class Subject extends TemplateEntity implements Serializable {
15        static searchable = true
16
17        /**
18         * return the domain fields for this domain class
19         * @return List
20         */
21        List<TemplateField> giveDomainFields() {
22                [
23                        new TemplateField(
24                                name: 'name',
25                                type: TemplateFieldType.STRING),
26                        new TemplateField(
27                                name: 'species',
28                                type: TemplateFieldType.ONTOLOGYTERM,
29                                ontologies: [Ontology.findByNcboId(1132)])
30                ]
31        }
32}
Note: See TracBrowser for help on using the repository browser.