Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Neo4j: fixed pagination with property projections
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Nov 24, 2011
1 parent 1a7564a commit e726498
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -91,10 +91,10 @@ class Neo4jQuery extends Query {
return new ManualProjections(entity).countDistinct(collection, projection.propertyName)
break
case Query.PropertyProjection:
return collection.collect { it."$projection.propertyName" }
return paginate( collection.collect { it."$projection.propertyName" } )
break
case Query.IdProjection:
return collection.collect { it."${entity.identity.name}" }
return paginate( collection.collect { it."${entity.identity.name}" } )
break
default:
throw new IllegalArgumentException("projections do not support ${projection.getClass().name}")
Expand Down

0 comments on commit e726498

Please sign in to comment.