Learnitweb

Category: Hibernate tutorial

  • Bootstrap Hibernate – Create SessionFactory

    In this tutorial, we’ll create our first Hibernate application. We’ll understand how to create SessionFactory and will use it to interact with MYSQL database to get database version. 1. Create SessionFactory in Hibernate The starting point of writing a Hibernate program is to create a SessionFactory. Bootstrapping APIs are redesigned in Hibernate 5.0. The way…

  • Important interfaces of Hibernate

    Following are the most important interfaces of Hibernate which act as base for using Hibernate: 1. org.hibernate.SessionFactory SessionFactory includes all of the metadata about Object/Relational Mapping. SessionFactory is a thread-safe and immutable. The JPA equivalent of SessionFactory is EntityManagerFactory. A SessionFactory is very expensive to create. So an application should have only one SessionFactory for…

  • Introduction to Hibernate Framework

    1. Introduction In this tutorial, we’ll discuss about Hibernate. This tutorial should be considered as an introduction to Hibernate framework. We’ll discuss the problems which Hibernate solves and its capabilities. Hibernate is an Object/Relational Mapping solution for Java environments. This Object/Relational Mapping refers to the technique of mapping data from an object model representation to…