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

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

updated domain classes: added comments, carried out some normalization

File size: 551 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * The Template class describes a study template, which is basically an extension of the study capture entities
5 * in terms of extra fields (described by classes that extend the TemplateField class).
6 * At this moment, only extension of the subject entity is implemented.
7 */
8class Template {
9
10    String name
11    nimble.User owner
12
13    static hasMany = [subjectFields : TemplateSubjectField]
14 
15    static constraints = {
16        name(unique:true)
17    }
18
19    def String toString() {
20        return this.name;
21    }
22}
Note: See TracBrowser for help on using the repository browser.