AboutTermsPrivacyContact
 
Updating
The Marco Show

The Marco Show

Released: 2025-10-01
© IntelliJ IDEA
The Marco Show - QR Code
3 Episodes
Audio
Listen on Apple Podcasts
3 Episodes
Audio
Listen on Apple Podcasts
Released: 2025-10-01
© IntelliJ IDEA
Most Recent Episode
Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King

Hibernate: Myths & Over-Engineering. ORMs vs SQL vs Hexagonal — Gavin King

📺 Note: This episode contains screensharing and live coding examples that work best visually. If you’d like to follow along, check out the full video version on YouTube: https://youtu.be/Qvh3VFlvJnE. Gavin King (creator of Hibernate) joins Marco
Time: 1:43:04
📺 Note: This episode contains screensharing and live coding examples that work best visually. If you’d like to follow along, check out the full video version on YouTube: https://youtu.be/Qvh3VFlvJnE.
Gavin King (creator of Hibernate) joins Marco to cut through the myths of Java persistence. When should you skip layers of repositories and just write SQL, or even model database views? What actually causes lazy-loading pain, and how do stateless sessions help? We cover Hibernate, JPA, and where Jakarta Data is headed, plus pragmatic advice for legacy schemas, performance, and keeping your code DRY.
💡 Topics in this episode:
• SQL vs repositories (and why views can be your adapter layer)
• The three inheritance strategies, and the trap of table-per-class
• Stateless sessions vs stateful persistence contexts
• LazyInitializationException explained (and avoided)
• DRY first: let architecture emerge via refactoring
• Jakarta Data 1.0/1.1: annotation processing, stateful repos, dynamic queries
• Performance rule-of-thumb: minimize round-trips
⏱️ Timestamps
(00:00) Teaser
(01:00) Gavin King intro and early Hibernate motivation
(03:59) Old-school open-source culture and discovery
(08:39) SQL isn’t hard: minimize DB round-trips
(10:03) “Leaky abstractions are good” (and why)
(12:04) Architecture should emerge from code
(15:44) DRY as commandment #1
(22:05) Reviewing a typical Spring Data setup (and pitfalls)
(25:39) Inheritance strategies: joined vs single table vs table-per-class
(30:06) One screen? Just write a SQL query (pragmatism)
(33:08) When ORM shines: operations over graphs
(35:22) Use views to adapt messy legacy schemas
(43:18) Jakarta Data repos: annotation-driven, step-into-able
(44:59) Stateless Session: less magic, explicit updates
(48:51) Jakarta Data 1.1: stateful repos, dynamic queries, reactive
(01:24:22) Rapid fire questions
(01:33:15) Features Gavin would delete and lessons learned
(01:42:30) Giveaway
New episodes every other Wednesday. Subscribe for deep, developer-focused conversations.
Episode ID: 1000729530082
GUID: 4cca76a0-e19a-43ce-bd71-208aad5ab316
Release Date: 01/10/2025, 15:00:00

Description

The Marco Show is a bi-weekly podcast about AI, coding, and developer tools — hosted by Marco Behler, Developer Advocate for Java at JetBrains.
Before JetBrains, Marco ran a consultancy in Munich, working with clients like BMW, Wirecard, and KVB, and built software at BWSO (now tresmo). He’s also a Java and Spring trainer, conference speaker, and writer of guides, courses, and videos.
Each episode brings real conversations with tech people who actually build things: opposing opinions, hot takes, and useful insights for developers who want to go deeper.
New episodes every other Wednesday.

Apple Podcasts: Customer Reviews

No Entry