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
RevLine 
[77]1package dbnp.studycapturing
2
3/**
4 * Domain class describing the basic entity in the study capture part: the Study class.
[103]5 *
6 * Revision information:
7 * $Rev: 184 $
8 * $Author: keesvb $
9 * $Date: 2010-02-09 16:01:03 +0000 (di, 09 feb 2010) $
[77]10 */
[138]11class Study implements Serializable {
[139]12        static searchable = true
[92]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
[77]23
[138]24        static hasMany = [      editors: nimble.User,
25                                                readers: nimble.User,
26                                                subjects: Subject,
27                                                groups: SubjectGroup,
28                                                events: Event,
[184]29                                                samplingEvents: SamplingEvent,
30                        persons: StudyPerson,
31                        publications: Publication
[103]32        ]
[77]33
[92]34        static constraints = {
[101]35                owner(nullable: true, blank: true)
36                title(nullable: false, blank: false)
37                template(nullable: true, blank: true)
[92]38        }
[77]39
[92]40        static mapping = {
41                researchQuestion type: 'text'
42                description type: 'text'
[136]43                autoTimestamp true
[92]44        }
[100]45
[103]46        def String toString() {
47                return title;
48        }
[176]49
[177]50        def giveAllFields() {
51                return template.studyFields;
[176]52        }
[77]53}
Note: See TracBrowser for help on using the repository browser.