Home / Interview / Hibernate :: General Questions

Interview :: Hibernate

1)

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
4)

What are the core interfaces of Hibernate?

The core interfaces of Hibernate framework are:

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

5)

Define criteria in terms of Hibernate?

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

6)

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

7)

List the key components of Hibernate?

Key components of Hibernate are:

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

8)

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:

Session.createSQLQuery

10) What does HQL stand for?

Hibernate Query Language