Hibernate Interview Questions

Hibernate
  1. How do you configure hibernate?
  2. Why we need hibernate over JDBC?
  3. What are the annotation used in Hibernate? @Entity, @Id, @Column, @ManyToOne, @OneToMany
  4. Explain Hibernate Cache
  5. Based on given id we need to fetch data from DB otherwise return NULL, What Query needs to be used ?
    get method needs to be used.
    session.get(Department.class,1)
  6. What is the difference between JDBC and Hibernate
  7. What are the cache mechanisom available in hibernate and how to configure second level cache?
  8. What is the ORM?
  9. What is the Benefits/Advantage of Hibernate?
  10. How money ways create composite id in hibernate.
  11. What is the difference between save and saveOrUpdates.
  12. What are the fetching strategies in hibernate
  13. How to configure hibernate connections properties in spring.
  14. What are the relationships in hibernate and explain each one and how to configure each relationships in mapping file or annotation.
  15. Explain one-to-one, one-to-many relationships in Hibernate?
  16. Difference between HQL and Criteria?
Manohar Kota

About Manohar

I, Manohar am the founder and chief editor of ClarifyAll.com. I am working in an IT professional.

View all posts by Manohar →

2 Comments on “Hibernate Interview Questions”

Leave a Reply