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

Last change on this file since 184 was 184, checked in by keesvb, 10 years ago

Deleted transcriptomics data model: moved some classes to study capture, the rest goes to the transcriptomics submodule. Added module location description for assays. Added Compound entity.

  • Property svn:keywords set to
    Date
    Author
    Rev
File size: 1.0 KB
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: 184 $
8 * $Author: keesvb $
9 * $Date: 2010-02-09 16:01:03 +0000 (di, 09 feb 2010) $
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                        persons: StudyPerson,
31                        publications: Publication
32        ]
33
34        static constraints = {
35                owner(nullable: true, blank: true)
36                title(nullable: false, blank: false)
37                template(nullable: true, blank: true)
38        }
39
40        static mapping = {
41                researchQuestion type: 'text'
42                description type: 'text'
43                autoTimestamp true
44        }
45
46        def String toString() {
47                return title;
48        }
49
50        def giveAllFields() {
51                return template.studyFields;
52        }
53}
Note: See TracBrowser for help on using the repository browser.