Home / Interview / Hibernate :: General Questions

Interview :: Hibernate


What is hibernate?

Hibernate is an open-source and lightweight ORM tool that is used to store, manipulate, and retrieve data from the database.

2) What is ORM?

ORM is an acronym for Object/Relational mapping. It is a programming strategy to map object with the data stored in the database. It simplifies data creation, data manipulation, and data access.

3) Explain hibernate architecture?

Hibernate architecture comprises of many interfaces such as Configuration, SessionFactory, Session, Transaction, etc.

hibernate framework architecture

What are the core interfaces of Hibernate?

The core interfaces of Hibernate framework are:

  • Configuration
  • SessionFactory
  • Session
  • Query
  • Criteria
  • Transaction


Define criteria in terms of Hibernate?

The objects of criteria are used for the creation and execution of the object-oriented criteria queries.


List some of the databases supported by Hibernate?

Some of the databases supported by Hibernate are:

  • DB2
  • MySQL
  • Oracle
  • Sybase SQL Server
  • Informix Dynamic Server
  • HSQL
  • PostgreSQL
  • FrontBase


List the key components of Hibernate?

Key components of Hibernate are:

  • Configuration
  • Session
  • SessionFactory
  • Criteria
  • Query
  • Transaction


Mention two components of Hibernate configuration object?

Database Connection

Class Mapping Setup

9) How is SQL query created in Hibernate?

The SQL query is created with the help of the following syntax:


10) What does HQL stand for?

Hibernate Query Language