Introduction of JOIN in Hibernate by R4R Team

In the Hibernate Query language we use the join statement to select the data form the multiple table of the database. It is possible when those table having relations in between. Using join statement we can select data form the multiple table with the single query construction of the HQL. It means we can say that joins are used to combine rows from two or more tables.

Example: Here we have given below one table:

(b) Another table is ORDERS as follows:

SQL> SELECT ID, NAME, AGE, AMOUNT
        FROM CUSTOMERS, ORDERS
        WHERE  CUSTOMERS.ID = ORDERS.CUSTOMER_ID;

This would produce the following result:

SQL> SELECT ID, NAME, AGE, AMOUNT

        FROM CUSTOMERS, ORDERS

        WHERE  CUSTOMERS.ID = ORDERS.CUSTOMER_ID;


Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!