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

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

updated domain classes: added comments, carried out some normalization

File size: 666 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * Domain class describing the basic entity in the study capture part: the Study class.
5 */
6class Study {
7
8    nimble.User owner
9    String title
10    String code
11    String researchQuestion
12    String description
13    String ecCode
14    Date dateCreated
15    Date lastUpdated
16    Date startDate
17    Template template
18
19    static hasMany = [ editors : nimble.User, readers : nimble.User,
20            subjects: Subject, groups : SubjectGroup,
21            events: Event, samplingEvents : SamplingEvent]
22
23    static constraints = {
24    }
25
26    static mapping = {
27        researchQuestion type:'text'
28        description type:'text'
29    }
30
31}
Note: See TracBrowser for help on using the repository browser.