aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Join Multiple tables
 
Similar Threads
problem with accessing resultset from multiple tables
Query on BMP
SEVERE: Duplicate entry '1' for key 'PRIMARY'
Is Nested Join possible, mapping a POJO to multiple tables.
How to generate queries with random joins