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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to Join Multiple tables" Watch "how to Join Multiple tables" New topic

how to Join Multiple tables

Vamsi Polimetla

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:


"La verdadera sabidur´┐Ża viene del temor de Dios"
I agree. Here's the link: http://aspose.com/file-tools
subject: how to Join Multiple tables
Similar Threads
How to generate queries with random joins
SEVERE: Duplicate entry '1' for key 'PRIMARY'
Is Nested Join possible, mapping a POJO to multiple tables.
problem with accessing resultset from multiple tables
Query on BMP