Hibernate course
Learn Hibernate step by step: 56 lessons in 15 modules with worked examples, quizzes and interview questions. Free on JavaSchoolLab.
Hibernate Roadmap (11 Sections, 150 Topics)
JDBC Basics
- Introduction to JDBC
- Connection Setup
- Statement vs PreparedStatement
- ResultSet & Metadata
- CallableStatement & Stored Procedures
- Transactions
- Batch Processing
- JDBC Exception Handling
- Connection Pooling
- RowSet
- JDBC Production Best Practices
Hibernate Topics
- Introduction to Hibernate
- Hibernate Environment Setup
- Hibernate Basics
- Hibernate CRUD Operations
- Hibernate Querying
- Hibernate Associations
- Advanced Hibernate Concepts
- Hibernate with JPA
- Hibernate Best Practices
- Hibernate Architecture
Phase 1 · Hibernate Fundamentals (Core)
- Introduction, ORM and Comparisons: JDBC, JPA, Spring Data JPA
- Architecture, Configuration, Dependencies, Annotations and SessionFactory
Phase 2 · Hibernate Core Concepts (Essential)
- Entity Classes and Mapping: @Entity, @Table, @Id, @Column, @Transient, @Enumerated, java.time
- Primary Keys and @GeneratedValue Strategies
- Entity Lifecycle, Persistence Context, Session vs EntityManager
Phase 3 · CRUD Operations (Essential)
- Insert, Select, Update, Delete: persist, merge, remove, find, getReference
- flush(), clear(), refresh(), detach() and Legacy Operations
- Transaction Management in Hibernate and JPA
Phase 4 · Entity Relationships (Essential)
- One-to-One, Many-to-One, One-to-Many, @JoinColumn and mappedBy
- Many-to-Many, @JoinTable, Bidirectional vs Unidirectional
- Cascade Types, Orphan Removal and Fetch Types (Lazy vs Eager)
Phase 5 · Hibernate Querying (Core)
- HQL, JPQL, Native SQL and Parameterized Queries
- Criteria API and Named Queries
- Pagination, Sorting, Aggregates, Joins, Subqueries, Projections and DTO Projections
Phase 6 · Hibernate Caching (Essential)
- First-Level Cache (Persistence Context)
- Second-Level Cache, Query Cache, Providers, Eviction and Configuration
Phase 7 · Hibernate Performance Optimization (Essential)
- The N+1 Problem, Fetch Joins, Entity Graphs and Batch Fetching
- JDBC Batching, Connection Pooling and SQL Logging
- Query Optimization, Indexing, Read-Only Queries and Avoiding Eager Loading
Phase 8 · Transactions and Concurrency (Core)
- ACID, Hibernate Transactions, Spring @Transactional, Propagation and Isolation
- Optimistic and Pessimistic Locking, @Version and Deadlock Handling
- Dirty Checking, Write-Behind and Flush Modes
Phase 9 · Advanced Hibernate (Advanced)
- Inheritance Mapping: Single Table, Joined, Table Per Class and MappedSuperclass
- Composite Primary Keys, Custom Types and Attribute Converters
- Auditing, Soft Deletes, Hibernate Filters and Entity Listeners
- Multi-Tenancy, Schema Generation and Stored Procedures
Phase 10 · Hibernate with Spring Boot (Essential)
- Spring Data JPA: Repository Interfaces, JpaRepository, Derived Queries, @Query and Native Queries
- Specifications, Pageable, Page vs Slice, DTO Mapping and Entity-to-DTO Conversion
- Transactions, Database Configuration, Dialects, Flyway/Liquibase Migrations and Exception Handling
Phase 11 · Hibernate Interview Questions (Interview)
- Interview Q&A: Fundamentals and Core APIs (131-138)
- Interview Q&A: Performance, Concurrency and Troubleshooting (139-150)