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

Last change on this file since 92 was 92, checked in by duh, 10 years ago
  • added sample template data in bootstrap
  • upgraded jQuery
  • improved study capture wizard
  • fixed selenium test
File size: 623 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                //template(nullable:true,blank:true)
24        }
25
26        static mapping = {
27                researchQuestion type: 'text'
28                description type: 'text'
29        }
30}
Note: See TracBrowser for help on using the repository browser.