Hi,
I've read a lot of documentation but I didn't understand how to perform a join yet.
I have two tables having 1 column each:
Table1:
ID10435562
2673958
649688
6620837
8543654
Table2:
ID6620837
8543654
No foreign keys are present.
I want to perform the following SQL query using Hibernate Criteria:
Code:
select t1.id
from table1 t1 join table2 t2 on t1.id = t2.id;
I don't understand if I have to create some foreign key and then create Aliases to be able to do the join or not.
Could somebody explain me how to do that please?