Changeset 878
- Timestamp:
- Sep 8, 2010, 2:48:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/SamplingEvent.groovy
r874 r878 80 80 groups.each { eventgroup -> 81 81 if (!eventFound) { 82 eventFound = (that.id in eventgroup. events.id);82 eventFound = (that.id in eventgroup.samplingEvents.id); 83 83 } 84 84 } 85 85 86 86 return eventFound; 87 }88 89 /**90 * Get all samples that have this sampling event as a parent91 * @return Map92 */93 def getSamples() {94 def samples = Sample.findAll("from Sample as s where s.parentEvent.id = ${this.id}")95 samples.collect { it.class == SamplingEvent.class }96 samples.collect { it != null }97 return samples == null ? [] : samples98 87 } 99 88
Note: See TracChangeset
for help on using the changeset viewer.