Hibernate Tutorial


This tutorial is designed for all those Java programmers who would like to understand the Hibernate framework and its API. 

All the examples in this tutorial have been developed using Hibernate 6+.

Check out 35 + Hibernate Framework source code examples at my GitHub repository and below are their corresponding articles.

YouTube Video - What is Hibernate and How it Works?

1. Hibernate Getting Started

  • ✅ Hibernate XML Configuration Example - In this article, we will show you how to create a Hibernate Application using hibernate.cfg.xml configuration to connect to the MySQL database.
  • ✅ Hibernate Java Configuration Example - In this article, we will show you how to create a Hibernate Application using Java configuration without using hibernate.cfg.xml to connect to the MySQL database.

2. Hibernate Session Methods (With Examples)

  • ✅ Hibernate - saveOrUpdate() Method Example - In this article, we will create a simple Hibernate application to demonstrate how to save or update an entity in the database using the saveOrUpdate() method.
  • ✅ Hibernate - merge() Example - In this article, we will show you how to use Session.merge() method to merge an entity in Hibernate Application.
  • ✅ Hibernate - Delete or Remove an Entity Example - In Hibernate, an entity can be removed from a database by calling the Session.delete() or Session.remove(). Using these methods, we can remove a transient or persistent object from the datastore.
  • ✅ Hibernate - load() Method Example - In this article, we will create a simple Hibernate application using Java configuration without using hibernate.cfg.xml to demonstrate the usage of the Session.load() method.

3. Hibernate Mappings

4. Inheritance Mapping

5. Hibernate Query Language

6. Hibernate with Java 8

7. Database

  • ✅ Guide to Hibernate Schema Generation - In this guide, You will learn how Hibernate allows you to generate the database from the entity mappings. In this guide, we will the following points.

8. Hibernate Annotations

10. Hibernate with In-memory Database

12. Web app using JSP, Servlet, MySQL, and Hibernate

13. Misc

14. GitHub Repository

The complete source code of this tutorial is available on my GitHub Repository - https://github.com/RameshMF/Hibernate-ORM-Tutorials

15. Hibernate Video Tutorials on my YouTube Channel

Comments

Post a Comment

Leave Comment