Do You Really Need Hibernate?
Talkat JCON Europe 2023 · on Wednesday, 2023-06-21· at 11:00· Cinema 7, Im Mediapark 1, 50670 Köln, Germany·
summary
Asks whether full Hibernate-style ORM is necessary and demonstrates a concrete alternative using jOOQ with Java Records, DSL-generated classes and updatable records to issue type-safe SQL, perform inserts/updates, and avoid n+1 selects. Shows handling a legacy ERP with 2000 tables and 4,000 stored procedures, generating code from the DB (Flyway + Testcontainers) and producing nested multi-set queries that return JSON/XML so a single SQL call maps to a tree-shaped result; outlines how to mix jOOQ queries with JPA when needed.
AI-written summary · about
chapters (7)
- 0:00Introduction and background
- 10:41What is jOOQ and why
- 20:26Generating classes from database
- 29:23Lazy loading issues with Hibernate
- 35:46Building nested ranking lists
- 40:47When to use jOOQ or JPA
- 42:36Q&A and closing
related talks
49mDo You Really Need Hibernate?
54mDo you really need Hibernate
54mDo you really need Hibernate?
46mThe State of Java Relational Persistence
51mThe Persistence Heavyweight Championship: JPA vs. jOOQ
50mJOOQ Data Abstractions Without Distraction
50mCreate Your Perfect Persistence Stack
58mCause of Death: Hibernate.
