Changeset 288 for trunk/grails-app/domain
- Timestamp:
- Mar 21, 2010, 2:17:51 PM (13 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/Event.groovy
r247 r288 20 20 Map parameterIntegerValues 21 21 Map parameterFloatValues 22 Map parameterStringListValues 22 23 23 24 static hasMany = [ 24 parameterStringValues: String, // stores both STRING and STRINGLIST items (latter should be checked against the list) 25 parameterStringValues: String, // stores STRINGLIST items 26 parameterStringListValues: ParameterStringListItem, 25 27 parameterIntegerValues: int, 26 28 parameterFloatValues: float, … … 100 102 return eventDescription ? eventDescription.name : "" 101 103 } 104 102 105 } -
trunk/grails-app/domain/dbnp/studycapturing/Sample.groovy
r247 r288 17 17 18 18 static constraints = { 19 parentSubject(nullable:true) 20 } 21 22 static getSamplesFor( event ) { 23 return Sample.findAll( 'from Sample s where s.parentEvent =:event', [event:event] ) 19 24 } 20 25
Note: See TracChangeset
for help on using the changeset viewer.