title: Can I retrieve column names in a JPA native sql query?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5180339/how-to-get-resultsetmetadata-from-enity-manager">How to get ResultSetMetaData from enity manager?</a>  </p>
  </blockquote>
  
  
  
  <p>Given a simple table (<code>example_table</code>) with the following columns: <code>id, first_name, last_name</code> is it possible, by executing a JPA native sql query <code>em.createNativeQuery("select * from example_table")</code> retrieve the column names as well as the data? Running the <code>getResultList()</code> on the query only returns the data. How else can I retrieve the column names?</p>