Hibernate Cheat Sheet

This section documents Hibernate ORM 7.4.x (User Guide, Introduction, Query Language Guide, Data Repositories Guide), Jakarta Persistence 3.2, Hibernate Search 8.4.x, and the Hibernate Validator / Hibernate Reactive references — which are the references these pages are written and verified against.

This content was generated with the assistance of AI and should be verified against those official docs before being relied on in production.

Three older reference books were consulted as bibliography only while preparing these pages and are not the primary or main source for any page. All three predate Jakarta Persistence 3.2 and Hibernate ORM 6/7 (the javax.persistencejakarta.persistence namespace change, the ORM 6 query-engine rewrite, the Hibernate Search 6+ Elasticsearch backend), so the official documentation above wins on any discrepancy.

This section’s bibliography lists the reference material consulted while preparing these pages.

A single-page, printable summary of every concept page in this section — entity lifecycle states, @GeneratedValue strategies, association/cascade annotations, inheritance strategies, locking modes, the HQL/JPQL vs. Criteria vs. native-SQL decision, caching layers and CacheConcurrencyStrategy values, key hibernate./jakarta.persistence. settings, Hibernate Search annotations and the Lucene-vs-Elasticsearch backend choice, and the Hibernate Reactive/Data-Repositories/Validator essentials — handy for quick memorization or as a printable desk reference.

For the full explanation, every option, and additional examples, see the dedicated pages: