JavaOne 2026

JavaOne 2026 Session

Duke in front of a whiteboard

Do You Really Need Hibernate?

Summary

Projects often use the Java Persistence API (JPA) by default, and thus mostly Hibernate. But do all applications need a comprehensive object-relational mapping (ORM) with every conceivable function?

This talk discusses the architecture of database-centric applications and discusses whether you always need an object graph for persistence. Using an example application, it's shown how pure SQL, with the help of jOOQ and (nested) Java Records, simplifies data access and how common ORM problems such as the n+1 select problem can be avoided.

Finally, the possibility of combining jOOQ with JPA/Hibernate to leverage the best of both worlds is discussed.

Profile

Type: Learning Session (50 min)

Track: Enterprise Java, Cloud and Database

Audience Level: Beginner

Speaker: Simon Martinelli

Session: Thursday, March 19th at 11:15 AM in Room 104