This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes [Hibernate criteria api] is it possible to fetch data from two tables? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "[Hibernate criteria api] is it possible to fetch data from two tables?" Watch "[Hibernate criteria api] is it possible to fetch data from two tables?" New topic
Author

[Hibernate criteria api] is it possible to fetch data from two tables?

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 506
Thank you.
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

Yes.

You can use Associations and Projections to achieve this, see: hibernate criteria.

Sean


I love this place!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Hibernate criteria api] is it possible to fetch data from two tables?