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

Last change on this file since 145 was 145, checked in by duh, 7 years ago
  • wizard subjects page now build a table with features, does not work properly yet
  • youtube autoplay help items are possible now
  • development grouping page for selecting subjects and grouping them by dragging and dropping
File size: 630 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$
10 * $Author$
11 * $Date$
12 */
13class Subject implements Serializable {
14        static searchable = true
15        String name
16        Term species
17        Map templateStringFields
18        Map templateIntegerFields
19        Map templateFloatFields
20        Map templateTermFields
21
22        static hasMany = [
23                templateStringFields: String, // stores both STRING and STRINGLIST items (latter should be checked against the list)
24                templateIntegerFields: int,
25                templateFloatFields: float,
26                templateTermFields: Term
27        ]
28
29        static constraints = {
30        }
31}
Note: See TracBrowser for help on using the repository browser.