How to view the query output of single column in hibernate
posted 3 years ago
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");