Hibernate vs Spring Data vs jOOQ: Understanding Java Persistence | Thorben Janssen
The Marco Show29 Loka 2025

Hibernate vs Spring Data vs jOOQ: Understanding Java Persistence | Thorben Janssen

Thorben Janssen joins Marco to talk about the hidden power (and pain) of Java persistence frameworks. Hibernate, JPA, Spring Data, jOOQ: which one should you really use in 2025? From learning SQL the right way to surviving microservices madness, this episode is packed with hard-won lessons from decades of real-world Java work.

💡 Topics in this episode:

  • Hibernate vs JPA vs Jakarta Data
  • When to use jOOQ or Exposed
  • The biggest persistence misconceptions
  • Common performance traps (and how to avoid them)
  • Monoliths, microservices, and “real” architecture decisions
  • How AI might change the way we write queries


⏱️ Timestamps:

(00:00) Introduction: From painful early learning to AI-generated annotations
(01:02) Meet Thorben Janssen – consultant and trainer for Java persistence
(02:11) Early days of Hibernate and the horror of EJB2
(04:33) Main challenges in database access today
(06:18) Too many tools: Hibernate, JPA, Spring Data, jOOQ – how to choose
(08:15) Why understanding ORM internals really matters
(09:20) How juniors should start learning persistence
(10:59) SQL skills – why you still need them even with Hibernate or Spring Data
(13:48) SQL essentials for beginners: what to learn first
(16:01) Why Hibernate became the dominant persistence tool
(18:57) Hibernate vs JPA – is there really a difference?
(20:35) Hibernate API vs Jakarta Persistence API – which to use
(22:10) Criteria API and DSLs for queries
(23:43) Strengths and weaknesses of Spring Data JPA
(27:26) Jakarta Data vs Spring Data JPA
(30:53) Stateful vs stateless data models
(33:21) jOOQ, Exposed, and the SQL-centric approach
(37:41) Mixing Hibernate and Exposed in one project
(39:33) Where Spring Data JDBC fits in
(43:24) Starting a new project in 2025 – what stack to choose
(45:24) The role of experience and not chasing every new trend
(48:50) Monoliths, microservices, and common pitfalls
(52:14) Database design vs service design – where to start
(59:02) Common database performance issues
(01:03:10) Why developers should collaborate with DBAs
(01:06:20) Caching problems: when caches make things worse
(01:09:29) Reactive database access – what happened to the hype
(01:12:33) The "perfect" persistence framework – does it exist?
(01:14:40) AI-assisted development and query generation
(01:19:43) The AI hype cycle and developer reality
(01:20:17) Other persistence models worth learning (graph, full-text search)
(01:21:43) Full-text search and graph databases in practice
(01:23:25) Integrating AI into applications
(01:24:38) Thorben's unpopular opinions
(01:26:04) Giveaway announcement
(01:27:06) Rapid-fire round: Paderborn, joins, and lazy loading
(01:30:00) Closing remarks


🎁 Giveaway: What’s the highest number of SQL queries you’ve ever seen one workflow generate? Best answers win JetBrains merch or IDE licenses.

New episodes every other Wednesday. Subscribe for deep, developer-focused conversations.📺 Watch on YouTube: https://youtu.be/t4h6l-HlMJ8

Tämä jakso on lisätty Podme-palveluun avoimen RSS-syötteen kautta eikä se ole Podmen omaa tuotantoa. Siksi jakso saattaa sisältää mainontaa.

Jaksot(23)

Databases, AI Agents and Death by Tooling - Michael Simons | The Marco Show

Databases, AI Agents and Death by Tooling - Michael Simons | The Marco Show

Michael Simons, a longtime Java developer and Neo4j engineer, joins Marco to talk about the engineering principles that have stayed relevant across decades of changing technologies. The conversation c...

2 Syys 1h 9min

40 Years of Programming: What AI Changes and What It Never Will - Venkat Subramaniam | The Marco Show

40 Years of Programming: What AI Changes and What It Never Will - Venkat Subramaniam | The Marco Show

Venkat Subramaniam joins Marco to talk about what AI is really changing for developers. They discuss why AI often impresses novices more than experts, why “AI first” is the wrong mindset, and why crit...

19 Elo 1h 24min

From Spring Framework to Spring AI: 13 Years of Building What Developers Need - Sébastien Deleuze | The Marco Show

From Spring Framework to Spring AI: 13 Years of Building What Developers Need - Sébastien Deleuze | The Marco Show

Sébastien Deleuze, a longtime Spring Framework committer and member of the Spring AI team, joins Marco to talk about how 13 years on the Spring team shaped his pragmatic approach to software developme...

5 Elo 40min

Why AI Won't Replace Great Java Developers - Josh Long | The Marco Show

Why AI Won't Replace Great Java Developers - Josh Long | The Marco Show

Josh Long, Spring Developer Advocate at Broadcom, joins Marco to cover 25 years of Spring history and what the JVM's real shot at the AI era actually looks like. Josh has published a weekly blog since...

22 Heinä 49min

The End of Traditional IDEs?: AI Workflows, Cursor, IntelliJ - Martin Lippert | The Marco Show

The End of Traditional IDEs?: AI Workflows, Cursor, IntelliJ - Martin Lippert | The Marco Show

Martin Lippert, longtime maintainer of Spring Tools and one of the people who has witnessed developer tooling evolve from Eclipse to VS Code, joins Marco to discuss how AI is transforming Java develop...

8 Heinä 1h 5min

Why Scala Changed Programming Languages Forever - Martin Odersky | The Marco Show

Why Scala Changed Programming Languages Forever - Martin Odersky | The Marco Show

Martin Odersky, creator of Scala and co-designer of Java generics, joins Marco to trace the full arc from Pizza (the 1996 functional Java experiment) to Scala 3, and on to his vision for capabilities ...

3 Kesä 54min

Java at Spotify: Microservices, MCP & AI Overload – Mohamed Aboullaite | The Marco Show

Java at Spotify: Microservices, MCP & AI Overload – Mohamed Aboullaite | The Marco Show

Mohamed Aboullaite, backend engineer at Spotify, Java Champion, Google Cloud Developer Expert, and Docker Captain, joins Marco to talk about building AI-powered integrations at scale, what software en...

20 Touko 42min

The Future of Java in the Age of AI Agents - James Ward | The Marco Show

The Future of Java in the Age of AI Agents - James Ward | The Marco Show

James Ward (Developer Advocate at AWS, Agentic AI Foundation Technical Committee Member) joins Marco to map out the fast-moving landscape of AI agents on the JVM. From MCP and ACP to Spring AI, Embabe...

22 Huhti 1h 11min