public void count ( String propertyName , String alias ) { final CountProjection proj = Projections . count ( calculatePropertyName ( propertyName ) ) ; addProjectionToList ( proj , alias ) ; }
Adds a projection that allows the criteria to return the property count