I am new to Hibernate. I have two tables, e.g., student
and phone number
and these two tables have a common column, student id
.
I want to do an inner join with these two tables using Hibernate hql.
student.java
{
private int id;
private String name;
}
phone.java
{
private int pid;
private int sid; //same id in student.java
private int phone_number;
}