GeeCON Prague 2014*
The moose likes Object Relational Mapping and the fly likes how to Join Multiple tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to Join Multiple tables" Watch "how to Join Multiple tables" New topic
Author

how to Join Multiple tables

Vamsi Polimetla
Greenhorn

Joined: Sep 12, 2006
Posts: 8
Hi i need to join multiple tables, any one got any idea, how to do this in hibernate.

i have 5 diffrent tables, i need to get all the data from the 5 tables based on Primary key. (PK) is common in all tables.

Thanks for your time
Halcon Guatemala
Ranch Hand

Joined: Sep 06, 2006
Posts: 57
Hi Vamsi, I hope it helps...

if join is necessary:



else:


"La verdadera sabidur´┐Ża viene del temor de Dios"
 
GeeCON Prague 2014
 
subject: how to Join Multiple tables