Changeset 1903 for trunk/src/groovy/dbnp/query/Search.groovy
- Timestamp:
- May 31, 2011, 11:01:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/groovy/dbnp/query/Search.groovy
r1902 r1903 339 339 340 340 // If there are entities matching these criteria, put a where clause in the full HQL query 341 if( entities && entities.findAll { it }) {341 if( entities ) { 342 342 // Find criteria that match one or more 'complex' fields 343 343 // These criteria must be checked extra, since they are not correctly handled … … 346 346 entities = filterForComplexCriteria( entities, entityCriteria ); 347 347 348 def paramName = from.replaceAll( /\W/, '' ); 349 fullHQL.where << sprintf( entityClause( entityName ), from, alias, paramName ); 350 fullHQL.parameters[ paramName ] = entities 351 return true; 352 } else { 353 results = []; 354 return false 355 } 348 if( entities ) { 349 def paramName = from.replaceAll( /\W/, '' ); 350 fullHQL.where << sprintf( entityClause( entityName ), from, alias, paramName ); 351 fullHQL.parameters[ paramName ] = entities 352 return true; 353 } 354 } 355 356 // No results are found. 357 results = []; 358 return false 356 359 } 357 360
Note: See TracChangeset
for help on using the changeset viewer.