Introduction
Before we proceed, it's necessary to learn about the fundamentals of hibernate: the classes and interfaces required.
In this chapter, we will cover the fundamentals of hibernate, such as SessionFactory
, Session
, and Criteria
. We will discuss the importance of SessionFactory
in the hibernate application. Criteria is used to do the actual transaction or the CRUD (Create, Read, Update, Delete) operation. Apart from this, we will cover some basic and useful functionalities, such as the sorting of results, limiting the number of rows, transforming a result, and the basics of projections.