wood burning stoves*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: How to view the query output of single column in hibernate