Skip to main content

Section 16 · Stage 4: Build Applications

Spring Data JPA & Hibernate

Map Java objects to tables, model relationships, write repository queries and avoid the common performance traps.

What you will be able to do

  • Explain what ORM, JPA and Hibernate are and when to use them
  • Map classes to tables, including one-to-many and many-to-many relationships
  • Write repository queries with derived methods, JPQL and native SQL
  • Use pagination, sorting and transactions in a Spring application
  • Find and fix the N+1 problem and other common JPA performance traps
  • Manage schema changes with Flyway migrations

What you will learn

  1. 16.1ORM, JPA & Hibernate6 lessons
  2. 16.2Entities & Mapping8 lessons
  3. 16.3Repositories & Queries8 lessons
  4. 16.4Relationships8 lessons
  5. 16.5The Persistence Context & Entity Lifecycle7 lessons
  6. 16.6Transactions in Spring8 lessons
  7. 16.7Pagination, Sorting & Searching7 lessons
  8. 16.8Performance Traps8 lessons
  9. 16.9Schema Migrations with Flyway7 lessons
  10. 16.10JPA Mini Project: ShopLite on JPA5 lessons