There is always a choice. Spring Data JDBC vs. Hibernate. Taras Boychuk. Java Fest 2020 Online
summary
Compares Hibernate’s full JPA stack (Spring Boot, H2, Spring Data JPA, Lombok, Flyway) with Spring Data JDBC and demos a small app with Person and Note entities. Shows that without @Transactional required updates don’t flush, that adding Cascade.PERSIST fixes orphan inserts, and that default lazy loading causes n+1 selects and depends on Open Session in View. Explains Hibernate internals: session/persistence context, action queue and flush ordering, and argues Spring Data JDBC is simpler—no session, no dirty‑checking, aggregate‑root oriented.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 5:12Spring Initializer
- 8:22Hibernate
- 11:02Person Repository
- 13:08Generate Person
- 15:55Change State
- 20:28Change Endpoint
- 21:24Hibernate Example
- 31:07Hibernate Lazy Loading
- 33:54Hibernate Entity Manager
- 38:54Hibernate Session Boundaries
related talks
46mThe State of Java Relational Persistence
49mPerformance oriented Spring Data JPA & Hibernate
52mCause of Death: Spring Data JPA
50mSpring's unexpected features
44mPerformance oriented Spring Data JPA & Hibernate
34mThe Complexity of JPA
49mDo You Really Need Hibernate?
01h 49mJPA Essentials Workshop – Fundamental Concepts and Common Pitfalls
