title: Hibernate hql inner join
body: <p>Hi am newbie to hibernate..
  I have two tables like student and phone number these two tables had a common column as student id.i want do inner join with these two table using Hibernate hql. </p>
  
  <p>My Code :</p>
  
  <pre><code>student.java 
  {
     private int id;   
     private String name;    
  }
  
  phone.java
  {
      private int id;
      private int sid;//same id in student.java 
      private int phone_number;
  }
  </code></pre>
  
  <p>I want hql query using inner join,student.hbm.xml and phone.hbm.xml .
  Thanks in advance.</p>