title: Retrieving single value using JPA?
body: <p>Is there any support by JPA to map single values to scalar data types? For example, to map NUM in the following query</p>
  
  <pre><code>SELECT COUNT(*) AS NUM FROM EMPLOYEES
  </code></pre>
  
  <p>to some variable</p>
  
  <pre><code>int numerOfEmployees
  </code></pre>
  
  <p>or do I have to use JDBC for such use cases?</p>