Java Persistence Beginner to Intermediate

JPA and Hibernate Fundamentals

A practical JPA course for backend developers: ORM basics, entities, repositories, CRUD, relationships, JPQL, fetch strategies, transactions, N+1, DTO boundaries, migrations, and mapping strategies.

Theory

  1. Stage 1 - JPA Introduction: Database, ORM, JPA, and Hibernate
  2. Stage 2 - Entities: Mapping Java Classes to Tables
  3. Stage 3 - Repositories: JpaRepository and Basic Data Access
  4. Stage 4 - CRUD Operations: Create, Read, Update, Delete
  5. Stage 5 - Relationships: One-to-One, One-to-Many, and Many-to-Many
  6. Stage 6 - JPQL: Querying Entities Instead of Tables
  7. Stage 7 - Fetch Types: LAZY, EAGER, and Loading Problems
  8. Stage 8 - Transactions: ACID, @Transactional, Rollback, and Isolation
  9. Stage 9 - N+1 Problem: Detecting and Fixing Excess Queries
  10. Stage 10 - DTO vs Entity in Backend APIs
  11. Stage 11 - Database Migrations with Flyway and Liquibase
  12. Stage 12 - Transactions in the Service Layer
  13. Stage 13 - Mapping Strategies and Lazy Loading