title: create query join hibernate which returns multiple objects
body: <p>I am currently doing the following:</p>
  
  <pre><code> Query q = session.createQuery("select x,s.id from com.package.IdLookupHDO x JOIN com.package.SourceDataHDO s ON x.identifier = s.sourcePrimaryIdentifier");
          for (Object obj : q.list()){
  
          }
  </code></pre>
  
  <p>I think this join query will work without a problem. However I expected the query to give back object arrays in the list method because I have requested two things in my select (IdLookupHDO and id).
  I have searched around and cannot find an answer but how can I retrieve both selected objects? </p>