title: Does JPQL supports SUM and arithmetic functions on the same fields in a query?
body: <p>My query is like:</p>
  
  <pre><code>select sum(m.value * m.currency) from bill m 
  </code></pre>
  
  <p>It fails and gives me this exception:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: An exception occurred while
    creating a query in EntityManager: Exception Description: Syntax error
    parsing the query syntax error at [*].</p>
  </blockquote>
  
  <p>I'm using eclipselink.</p>