This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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.
 
Have you checked out Aspose?
 
subject: how to select only few coloum of table using Criteria class in hibernate
 
It's not a secret anymore!