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

Last change on this file since 396 was 396, checked in by duh, 11 years ago
  • fixed incomplete implementation of domain fields (getters, setters and constrains logic were all not implemented correctly)
  • refactored wizards pages
  • TODO: constraints on (templated) domain fields are not working anymore, this needs to be implemented properly in TemplateEntity?
  • Property svn:keywords set to Date Author Rev
File size: 692 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: 396 $
11 * $Author: duh $
12 * $Date: 2010-05-07 12:24:27 +0000 (vr, 07 mei 2010) $
13 */
14class Subject extends TemplateEntity implements Serializable {
15        static searchable = true
16
17        List<TemplateField> giveDomainFields() {
18                [ new TemplateField(
19                            name: 'name',
20                            type: TemplateFieldType.STRING),
21                        new TemplateField(
22                            name: 'species',
23                            type: TemplateFieldType.ONTOLOGYTERM,
24                            ontologies: [Ontology.findByNcboId(1132)]) ];
25        }
26}
Note: See TracBrowser for help on using the repository browser.