title: How do I create an object for Hibernate's query response?
body: <p>Using an object that extends HibernateDaoSupport, I ran a query using this right here:</p>
  
  <pre><code>List&lt;Object&gt; trialList2 = getSession().createSQLQuery(trialQuery2).list();   
  </code></pre>
  
  <p>Where trialQuery2 is just some query that returned a single row. I got back a list with one Object on it, which when inspected in Eclipse looks like this:</p>
  
  <pre><code>[some, random, data]
  </code></pre>
  
  <p>I'd like to create an Object that can accommodate what I got back from the query, but a simple Javabean object that can has those fields doesn't seem to work. Does anyone know what kind of object I would have to make to be able to access those values?</p>