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 view the query output  of single column 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 view the query output  of single column in hibernate" Watch "How to view the query output  of single column in hibernate" New topic
Author

How to view the query output of single column in hibernate

vinoth dev
Greenhorn

Joined: Mar 26, 2013
Posts: 4
Hi , Please kindly help me on this, I'm extracting only one column values from the table employee and I want to show this in the system output.
I'm able to show all the columns using list with iterator. But how to show if I only extracting single column.

Query sql = session.createQuery("select firstName FROM Employee");


thanks in advance .
 
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: How to view the query output of single column in hibernate
 
It's not a secret anymore!