Hibernate Masterclass | Session 5 — Hibernate Without XML, HibernateUtil Class, Save() vs Persist()

Опубликовано: 27 Июль 2026
на канале: Zacks Software Academy
201
17

Welcome to Session 5 of the Hibernate Masterclass — a practical and concept-focused session where we learn how to use Hibernate without any XML files and implement Hibernate using a Java-based configuration approach.

In this session, we go beyond the traditional hibernate.cfg.xml setup and explore how to configure Hibernate programmatically. You will learn how to build a HibernateUtil class, create a reusable SessionFactory, and understand how any class in your project can use this utility to get Hibernate Sessions easily.

Along with this, we also dive into important Hibernate concepts such as the difference between the save() and persist() methods, and how Hibernate behaves internally during the lifecycle of an entity.

🧠 In this lecture, you’ll learn:
✅ Hibernate Without XML
✅ HibernateUtil Class
✅ SessionFactory & Session Concepts
✅ save() vs persist() — Important Differences

🎯 By the end of this session
You’ll be confident in building a complete Hibernate program fully in Java — no XML required!
You’ll also understand the right way to build your SessionFactory and work with Sessions in a clean, reusable, and scalable way.

📚 About this Series
This video is part of the Hibernate Masterclass Series, where we go from beginner to advanced — covering mappings, relationships, HQL, caching, transactions, and Hibernate + Spring Boot integration.

💬 Live Session Info
This is a recording of a live Hibernate Masterclass session.
To join upcoming live classes, contact us via WhatsApp or Gmail (details in the About section).

#Hibernate #JPA #HibernateWithoutXML #HibernateMasterclass