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

Last change on this file since 139 was 139, checked in by keesvb, 13 years ago

changed domain model for events and protocol parameters, and for template field storage, added NuGO PPS3 events, added searchable plugin for full text queries, corrected a few HTML errors in create study

File size: 559 bytes
RevLine 
[77]1package dbnp.studycapturing
[139]2
[106]3import dbnp.data.Term
4
[84]5/**
6 * This domain class describes the subjects in a study.
7 */
[139]8class Subject {
9        static searchable = true
[136]10        String name
11        Term species
12        Map templateStringFields
[139]13        Map templateIntegerFields
14        Map templateFloatFields
[136]15        Map templateTermFields
[77]16
[136]17        static hasMany = [
[139]18                templateStringFields : String, // stores both STRING and STRINGLIST items (latter should be checked against the list)
19                templateIntegerFields : int,
20                templateFloatFields : float,
21                templateTermFields : Term
[136]22        ]
[139]23       
[136]24        static constraints = {
25        }
[77]26}
Note: See TracBrowser for help on using the repository browser.