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.
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.
Hibernate architecture comprises of many interfaces such as Configuration, SessionFactory, Session, Transaction, etc.
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
The SQL query is created with the help of the following syntax:
Session.createSQLQuery
Hibernate Query Language