How to get single column from database using hibernate?



How to get single column from database using hibernate?..

Answer / Pankaj Balodi

To get a single column from the database using Hibernate, you can use the 'get' method on the returned object or use Hibernate Query Language (HQL) with the 'alias.property' syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Does hibernate work without primary key?

1 Answers  


What are the mapping associations used in hibernate?

1 Answers  


What is difference between steady state and transient state?

1 Answers  


What are some advantages of lazy loading?

1 Answers  


What is purpose of hibernate?

1 Answers  


What is the difference between save() and persist() methods of session object?

1 Answers  


How does orm work?

1 Answers  


What is the difference between an orm and an odm?

1 Answers  


Does hibernate support nosql?

1 Answers  


What are the Core interfaces of Hibernate framework?

1 Answers  


What is hibernate context?

1 Answers  


What is second level caching?

1 Answers  


Categories