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

Last change on this file since 386 was 386, checked in by roberth, 9 years ago

Updated the template entities to be able to return domain fields, template fields and both.
Rolled back the change of Kees in the Event object, so the startTime and endTime fields returned.
Also updated the studies list with a new layout.

  • Property svn:keywords set to Date Author Rev
File size: 640 bytes
Line 
1package dbnp.studycapturing
2
3import dbnp.data.Term
4
5/**
6 * This domain class describes the subjects in a study.
7 *
8 * Revision information:
9 * $Rev: 386 $
10 * $Author: roberth $
11 * $Date: 2010-04-27 13:53:06 +0000 (di, 27 apr 2010) $
12 */
13class Subject extends TemplateEntity implements Serializable {
14        static searchable = true
15        String name
16        Term species
17
18        List<DomainTemplateField> giveDomainFields() {
19                [ new DomainTemplateField(
20                            name: 'name',
21                            type: TemplateFieldType.STRING),
22                        new DomainTemplateField(
23                            name: 'species',
24                            type: TemplateFieldType.ONTOLOGYTERM) ];
25        }
26}
Note: See TracBrowser for help on using the repository browser.