• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to view the query output of single column in hibernate

vinoth dev
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!