This week's book giveaway is in the Open Source forum.
We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes [Hibernate] Selection Collection from table. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "[Hibernate] Selection Collection from table." Watch "[Hibernate] Selection Collection from table." New topic
Author

[Hibernate] Selection Collection from table.

Stas Baturin
Greenhorn

Joined: Dec 21, 2011
Posts: 5
HI
How to selection Collection from table without using Query query = session.createQuery(SQL_QUERY); ??
My example :

But throws Exception:

How to get a collection instead of just one object?
Aravind M Jay
Greenhorn

Joined: Mar 16, 2006
Posts: 15
Criteria API is one of the ways -



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [Hibernate] Selection Collection from table.