title: how to write POJO in hibernate having joins for more than 2 tables
body: <p>I am new to hibernate, trying to get information from more than 2 tables using hql, if we pull that information we need to put in a POJO how to do mapping for each column to the information that we get as a result from the query?</p>
  
  <p>Tried using @secondarytable() and @Table but it cannot allow more than 1 secondary table annotation.</p>
  
  <p>So is it that we cannot have join for more than 2 tables in hibernate?</p>