title: JPQL: What kind of objects contains a result list when querying multiple columns?
body: <p>I'm trying to do something which is easy as pie in PHP &amp; Co:
  SELECT COUNT(x) as numItems, AVG(y) as average, ... FROM Z</p>
  
  <p>In PHP I would get a simple array like [{ numItems: 0, average: 0 }] which I could use like this:</p>
  
  <pre><code>echo "Number of Items: " . $result[0]['numItems'];
  </code></pre>
  
  <p>Usually in JPQL you only query single objects or single columns and get Lists types, for example <code>List&lt;SomeEntity&gt;</code> or <code>List&lt;Long&gt;</code>. But what do you get, when querying multiple columns?</p>