Last change
on this file since 813 was
813,
checked in by keesvb, 10 years ago
|
updated event group with unique name constraint, added EventGroup? tests and updated deleteEventGroup to deal with empty event groups
|
-
Property svn:keywords set to
Author Rev Date
|
File size:
426 bytes
|
Line | |
---|
1 | package dbnp.studycapturing |
---|
2 | |
---|
3 | /** |
---|
4 | * EventGroup groups events |
---|
5 | * |
---|
6 | * Revision information: |
---|
7 | * $Rev: 813 $ |
---|
8 | * $Author: keesvb $ |
---|
9 | * $Date: 2010-08-16 16:27:31 +0000 (ma, 16 aug 2010) $ |
---|
10 | */ |
---|
11 | class 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.