public org . grails . datastore . mapping . query . api . ProjectionList sum ( String propertyName , String alias ) { final AggregateProjection proj = Projections . sum ( calculatePropertyName ( propertyName ) ) ; addProjectionToList ( proj , alias ) ; return this ; }
Adds a projection that allows the criteria to retrieve the sum of the results of a property