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

Last change on this file since 95 was 95, checked in by ademcan, 10 years ago

list and show for the studies list

File size: 669 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        nimble.User owner
8        String title
9        String code
10        String researchQuestion
11        String description
12        String ecCode
13        Date dateCreated
14        Date lastUpdated
15        Date startDate
16        Template template
17
18        static hasMany = [editors: nimble.User, readers: nimble.User,
19                subjects: Subject, groups: SubjectGroup,
20                events: Event, samplingEvents: SamplingEvent]
21
22        static constraints = {
23                owner(nullable:true,blank:true)
24                template(nullable:true,blank:true)
25        }
26
27        static mapping = {
28                researchQuestion type: 'text'
29                description type: 'text'
30        }
31}
Note: See TracBrowser for help on using the repository browser.