This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate Query for 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 "Hibernate Query for multiple tables" Watch "Hibernate Query for multiple tables" New topic
Author

Hibernate Query for multiple tables

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
Hi,
I ran my test cases with a direct table which deals with one table one mapping file one pojo.

If I want to get data from multiple tables for a given identifier do I have to create pojo with attributes quried from multiple tables ?.
Can I right a straight SQL and execute using Hibernate for this scenario?

If a table have association with another table will querying parent table automatically retrieves child table data and returns its pojos ?

Can some one explain me. Thank in advance.

Sudhakar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Query for multiple tables
 
Similar Threads
Data fetch from multiple SQL tables
writing pojo in database
Object mapping at runtime
how to Join Multiple tables
What is the better choice for primary key ? natural key or system-generated key ?