
Why People Hate ORM

Hibernate Creator: Why Developers Hate ORM (And How We're Fixing It) - Gavin King
Topic 8 of 11
Published Sep 22, 2025 · Clip 54:10–1:08:53 (14:43)
Gavin analyzes why people hate ORM: any complex technology has a cost, and the stateful persistence context with managed entities, automatic dirty checking, and asynchronous flushing is hard to reason about and debug. He calls his incomplete, neglected StatelessSession in Hibernate 3.0 one of his worst career mistakes, since the stateless alternative never matured; it's finally coming to Jakarta Persistence 4.0. He also cites poor error reporting as a historical contributor to ORM hostility. He explains the fundamental graph-fetching problem: relational data is fully connected, so you must specify upfront what data a transaction needs — a problem that exists with or without ORM — and the stateless model's explicit lazy fetching surfaces lazy initialization exceptions earlier, avoiding N+1 selects.