Hibernate Interview Questions and Answers 2021

hibernate interview questions and answers

Hibernate Interview Questions and Answers 2021

Hibernate is an open source simple ORM tool. It is a java framework that simplifies the development of java application to interact with the database. Hibernate not only takes care of the mapping from Java classes to database, but also provides data query and retrieval facilities.

What is hibernate?

Post a Question

What is ORM?

What is Hibernate Framework?

What is Java Persistence API (JPA)?

What are the important benefits of using Hibernate Framework?

What are the advantages of Hibernate over JDBC?

What is hibernate configuration file?

What is hibernate mapping file?

What are the core interfaces of Hibernate?

What is SessionFactory?

What is Session?

What the states of object are in hibernate?

What is Hibernate Session and how to get it?

What is hibernate caching? Explain Hibernate first level cache?

What are different states of an entity bean?

What is difference between Hibernate save(), saveOrUpdate() and persist() methods?

What are the collection types in Hibernate?

What is the benefit of native sql query support in hibernate?

What is Named SQL Query?

What are the benefits of Named SQL Query?

What is the benefit of Hibernate Criteria API?

How to integrate Hibernate and Spring frameworks?

Other Important Hibernate Interview Questions and Answers

What are the important design patterns in Hibernate Framework?

What are different data types supports in Hibernate?

What are the core Interfaces of Hibernate?

Which element is used in hibernate maps java.util.Sorted Map property?

What is the return type of save ()?

What is Criteria object in Hibernate?

What is Hibernate tuning?

What is Java Persistence API (JPA)?

What is HQL?

What is the benefit of Native SQL query support in hibernate?

What do you know about transaction file?

What is the difference between add jar() and add directory() methods?

What are POJOs?

How does hibernate code looks like?

What is difference between Hibernate save(), saveOrUpdate() and persist() methods?

What are the different methods of identifying an object?

What are the ORM levels in hibernate?

What are the databases that Hibernate supports?

What is @Transient in Hibernate?

How would you define automatic dirty checking?

What are the Extension interfaces that are there in hibernate?

How can we bind hibernate session factory to JNDI ?

What are the types of Hibernate instance states?

What is the main difference between spring and hibernate?

Can you explain Query Cache in Hibernate?

which property is used to log hibernate generated sql queries in log files?

How many ways are used to disable Hibernate’s second-level cache?

Which annotation is used to declare a class as a hibernate bean ?

Which annotation is used to specify the lazy fetching behavior of a given collection?

Which annotation is used to specify the database column used as a ROWID pseudocolumn?

Which annotation is used to specify an alias for a Hibernate @Filter?

Name the Hibernate Annotations?