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