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

Last change on this file since 139 was 139, checked in by keesvb, 11 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: 904 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * Domain class describing the basic entity in the study capture part: the Study class.
5 *
6 * Revision information:
7 * $Rev$
8 * $Author$
9 * $Date$
10 */
11class Study implements Serializable {
12        static searchable = true
13        nimble.User owner
14        String title
15        String code
16        String researchQuestion
17        String description
18        String ecCode
19        Date dateCreated
20        Date lastUpdated
21        Date startDate
22        Template template
23
24        static hasMany = [      editors: nimble.User,
25                                                readers: nimble.User,
26                                                subjects: Subject,
27                                                groups: SubjectGroup,
28                                                events: Event,
29                                                samplingEvents: SamplingEvent
30        ]
31
32        static constraints = {
33                owner(nullable: true, blank: true)
34                title(nullable: false, blank: false)
35                template(nullable: true, blank: true)
36        }
37
38        static mapping = {
39                researchQuestion type: 'text'
40                description type: 'text'
41                autoTimestamp true
42        }
43
44        def String toString() {
45                return title;
46        }
47}
Note: See TracBrowser for help on using the repository browser.