title: Does JPA have an equivalent to Hibernate SQLQuery.addScalar()?
body: <p>My old Hibernate-only code uses something like</p>
  
  <pre><code>session.createSQLQuery("SELECT * FROM CATS")
  .addScalar("ID", Hibernate.LONG)
  .addScalar("NAME", Hibernate.STRING)
  .addScalar("BIRTHDATE", Hibernate.DATE)
  </code></pre>
  
  <p>In the new project we use Hibernate EntityManager (the JPA implementation). </p>
  
  <p>Is there an equivalent to those calls to addScalar()? Do I need to specify the types of the returned columns as I did before? </p>
  
  <p>For example, if I don't use addScalar will the SQL query results be cached?</p>