IT lexicon › Programming › Hibernate

Hibernate

Programming På svenska → Updated: 2026-05-24

Java's dominant ORM — Gavin King, 2001. Standardized into JPA (Java Persistence API). Default in Spring Boot, JEE.

Sits between Java objects and the relational database — session.save(user) becomes a SQL INSERT. HQL/JPQL is the query language (SQL-like). Famous pitfalls: N+1 queries (loop triggering a query per iteration), lazy loading exception outside the session. Major competitors: jOOQ (type-safe SQL builder), MyBatis (more SQL-explicit), Quarkus/Hibernate Reactive (modern). Gavin King later architected the Ceylon language + Red Hat.

← Back to the lexicon