This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design 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: 523
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: [Hibernate criteria api] is it possible to fetch data from two tables?
 
jQuery in Action, 3rd edition