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

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

small cosmetic changes, enabled Study list menu link

File size: 720 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
32  def String toString() {
33    return title;
34  }
35
36
37}
Note: See TracBrowser for help on using the repository browser.