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

Last change on this file since 85 was 85, checked in by ademcan, 13 years ago

the templates for the Study class, I have modified the scaffolding view.

File size: 709 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        template(nullable:true,blank:true)
25    }
26
27    static mapping = {
28        researchQuestion type:'text'
29        description type:'text'
30    }
31
32}
Note: See TracBrowser for help on using the repository browser.