title: Get table column names in Hibernate
body: <p>I am using hibernate <code>Criteria</code> class to get all records of table :</p>
  
  <pre><code>Criteria criteria = session.createCriteria(AppTaskConfig.class)
  </code></pre>
  
  <p>I would like to get column names also as I need to convert result set into JSON format.</p>