Changeset 287
- Timestamp:
- Mar 21, 2010, 2:17:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/SamplingEvent.groovy
r247 r287 13 13 static constraints = { 14 14 } 15 16 def getSamples() { 17 18 def samples = Sample.findAll("from Sample as s where s.parentEvent.id = ${this.id}" ) 19 samples.collect{ it.class==SamplingEvent.class } 20 samples.collect{ it!=null } 21 return samples==null ? [] : samples 22 } 23 15 24 }
Note: See TracChangeset
for help on using the changeset viewer.