Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Hibernate] Selection Collection from table.

 
Stas Baturin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Criteria API is one of the ways -



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic