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

Last change on this file since 140 was 140, checked in by duh, 9 years ago
  • temporary backup commit
File size: 635 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 *
8 * Revision information:
9 * $Rev$
10 * $Author$
11 * $Date$
12 */
13class Template implements Serializable {
14    String name
15    //nimble.User owner
16
17    static hasMany = [subjectFields : TemplateSubjectField]
18 
19    static constraints = {
20        name(unique:true)
21    }
22
23    def String toString() {
24        return this.name;
25    }
26}
Note: See TracBrowser for help on using the repository browser.