Ignore:
Timestamp:
Jan 27, 2010, 9:58:59 AM (10 years ago)
Author:
keesvb
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Subject.groovy

    r138 r139  
    11package dbnp.studycapturing
     2
    23import dbnp.data.Term
    34
    45/**
    56 * This domain class describes the subjects in a study.
    6  *
    7  * Revision information:
    8  * $Rev$
    9  * $Author$
    10  * $Date$
    117 */
    12 class Subject implements Serializable {
     8class Subject {
     9        static searchable = true
    1310        String name
    1411        Term species
    1512        Map templateStringFields
    16         Map templateNumberFields
    17         Map templateStringListFields
     13        Map templateIntegerFields
     14        Map templateFloatFields
    1815        Map templateTermFields
    1916
    2017        static hasMany = [
    21                 templateStringFields: String,
    22                 templateNumberFields: float,
    23                 templateStringListFields: String,
    24                 templateTermFields: Term
     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
    2522        ]
    26 
     23       
    2724        static constraints = {
    2825        }
Note: See TracChangeset for help on using the changeset viewer.