ORM opinions and Hibernate design lore

From Hibernate to Quarkus: Modernizing Java for Cloud-Native - Sanne Grinovero

Topic 5 of 8

Published Jun 16, 2025 · Clip 39:27–46:41 (7:14)

Sanne discusses Hibernate haters, attributing most criticism to people taught Hibernate wrongly or forced to use it where it doesn't fit. He explains when ORM makes sense (usually starting from one, minimizing transaction spans, using stateless sessions or native SQL when appropriate) and debunks design lore: entities don't need Serializable, getters/setters don't matter to Hibernate, and implementing equals/hashCode is usually unnecessary and often done incorrectly—only the primary key should be included, and IDs should be assigned before use.