title: No such property: INTEGER for class: grails.orm.HibernateCriteriaBuilder
body: <p>A query is composed as follows:</p>
  
  <pre><code>def subQuery = {
      ge("date", fromDate)
  }
  
  def query = {
      projections {
          sqlProjection 'sum(hoursBefore+hoursAfter) as totalHours', 'totalHours', INTEGER
      }
      and subQuery
  }
  </code></pre>
  
  <p>and then executed as follows:</p>
  
  <pre><code>def results = WorkLog.createCriteria().get(query)
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>No such property: INTEGER for class:
    grails.orm.HibernateCriteriaBuilder</p>
  </blockquote>
  
  <p>Any idea how to fix this?</p>