title: Math operators in Criteria queries
body: <p>Given the mapped hibernate class:</p>
  
  <pre><code>@Entity
  public class MyTestClass {
    /* id and stuff */
  
    private Integer aValue;
    private Integer bValue;
  }
  </code></pre>
  
  <p>you can do the following with HQL:</p>
  
  <pre><code>Query query 
    = getCurrentSession().createQuery("select aValue * bValue from MyTestClass");
  List&lt;Double&gt; resultList = query.list;
  </code></pre>
  
  <p>and get the calculated result out.</p>
  
  <p>Is it possible to do something similar to this with the Criteria API? I still haven't found a way to use math operations with the Criteria API. We have aggregate functions like sum, avg and so on, but not the basic math operators?</p>