This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android 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 .
 
wood burning stoves
 
subject: How to view the query output of single column in hibernate
 
Similar Threads
mapping for subclass - forcing query to join-
hibenrate Query...
drop down menu usinng optionCollections
Hibernate one-to-many weirdness...
passing parameters to sql