title: How to get column names and column types from Hibernate ScrollableResults
body: <p>I am generating a report using Hibernate.</p>
  
  <p>Constructing SQL from various table joins and querying using <code>Hibernate scrollable results</code>.</p>
  
  <p>Below is the sample code:</p>
  
  <pre><code>Query query = session.createSQLQuery("select * from A, B where A.id= B.Val");
  ScrollableResults results  = query.scroll(ScrollMode.FORWARD_ONLY);
  </code></pre>
  
  <p>I want to know all the column names and column types before generating an Excel report.</p>
  
  <p>How to achieve this with <code>Hibernate scrollable results</code>?</p>