Intermediate
Spring Data JPA and Hibernate
The ORM, without the surprises.
Entities, relationships, the persistence context, lazy loading and the N+1 problem, transactions and their propagation, and the queries that Spring Data derives and the ones you should write yourself.
5 lessons written2 modules~1h reading
After this course you can
- Map entities and relationships without an accidental N+1 or a LazyInitializationException
- Explain the persistence context, dirty checking and flush timing
- Use @Transactional with the right propagation and isolation and know where it silently does nothing
- Choose between derived queries, JPQL, native SQL and projections
Curriculum
5 lessons · outlined lessons show their plan01
Entities and relationships@Entity, identity, @OneToMany and @ManyToOne, owning sides, cascades, and the equals/hashCode that makes an entity safe in a Set.13 minThe persistence context and lazy loadingFirst-level cache, dirty checking, flush, detached entities, open-in-view, and the N+1 query you can see in the logs.14 minMapping
02
Transactions in Spring@Transactional's proxy, propagation types, isolation, read-only, rollback rules, and the checked exception that does not roll back.14 minRepositories and queriesDerived query methods, @Query with JPQL and native SQL, projections, pagination, and specifications for the search screen.12 minSchema migrations with FlywayVersioned migrations, the checksum that breaks a deploy, and why ddl-auto=update has no place in production.9 min