wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes how to select only few coloum of table using Criteria  class in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to select only few coloum of table using Criteria  class in hibernate" Watch "how to select only few coloum of table using Criteria  class in hibernate" New topic
Author

how to select only few coloum of table using Criteria class in hibernate

sudhakar dhavala
Greenhorn

Joined: Nov 04, 2005
Posts: 3
How to seect only few coloums for a table


hayden wangg
Greenhorn

Joined: Apr 25, 2007
Posts: 11
HQL could help to resolve this, for example:
select user.name, user.id from user where user.id>100

I'm not sure Criteria could also do this.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to select only few coloum of table using Criteria class in hibernate
 
Similar Threads
Jtable combo box issue
Oracle Query is not running
Returning A List Of Variables From A Folder Of Documents And Returning Them Into A New Document
Posting one selected option value in two forms
how to implement dynamic rows paging when user clicks next or previous links