source: trunk/grails-app/domain/dbnp/studycapturing/EventGroup.groovy @ 959

Last change on this file since 959 was 959, checked in by j.a.m.wesbeek@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Date Rev
File size: 426 bytes
Line 
1package dbnp.studycapturing
2
3/**
4 * EventGroup groups events
5 *
6 * Revision information:
7 * $Rev: 959 $
8 * $Author: j.a.m.wesbeek@umail.leidenuniv.nl $
9 * $Date: 2010-10-20 19:13:14 +0000 (wo, 20 okt 2010) $
10 */
11class EventGroup extends Identity {
12        String name
13
14        static belongsTo = [parent : Study]
15        static hasMany = [
16                subjects: Subject,
17                events: Event,
18                samplingEvents: SamplingEvent
19        ]
20
21        static constraints = {
22                // Ensure that the event group name is unique within the study
23                name(unique:['parent']) 
24        }
25}
Note: See TracBrowser for help on using the repository browser.