title: Hibernate mapping Object for Inner join query
body: <p>I'm trying to execute a query that has multiple inner joins and get different columns from these tables.</p>
  
  <p>For ex:</p>
  
  <pre><code>Table-1
      Col1, Col2........Col10
  
  
  Table-2
      Col1....Col5
  
  Table-3
      Col1...............Col20
  </code></pre>
  
  <p>Inner join</p>
  
  <pre><code>Select tb1.col1, tb1.col2, tb1.col3, tb2.col1, tb3.col1, tb.col2
  inner join
  tb1
  inner join
  tb2
  inner join
  tb3
  where cond1  &amp;cond2
  </code></pre>
  
  <p>The query executes fine using hibernate but I want the resultset to be mapped to a Java POJO Object..How can I build the mapping Object, Is there any tool that I can use to generate the mapping object for this query...</p>
  
  <p>I can do it manually but there are 40 columns in the output...</p>