public org . grails . datastore . mapping . query . api . ProjectionList groupProperty ( String propertyName , String alias ) { final PropertyProjection proj = Projections . groupProperty ( calculatePropertyName ( propertyName ) ) ; addProjectionToList ( proj , alias ) ; return this ; }
Adds a projection that allows the criteria s result to be grouped by a property