Overview
Hibernate ORM is a persistence framework that maps Java entities and relationships to relational tables. As a major Jakarta Persistence implementation, it provides HQL/query APIs, transactions, dirty checking, lazy/eager fetching, multi-tenancy, and audit logging through Envers.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Synchronize object state with tables through mappings and dirty checking
Annotation or XML mappings define entity/table relationships, while changes made inside a transaction can be detected and translated into SQL automatically.
Use JPA/HQL while adapting to database dialects
Jakarta Persistence APIs and Hibernate Query Language express complex relational queries while dialects handle many database-specific differences.
For Java applications that need a shared domain-to-RDBMS persistence layer
Hibernate fits Spring and Jakarta EE systems that want entity lifecycle, transactions, querying, and relational mapping centralized in one persistence framework.
Sources: [2]
Actively manage N+1 queries, lazy loading, session scope, and generated SQL
ORM abstractions can hide query volume and joins. Use fetch plans, batching, transaction boundaries, SQL logging, and profiling to keep database costs visible.
Sources: [4]
Official sources
- [1]hibernate/hibernate-orm repository(2026-09-20)
- [2]Hibernate ORM README(2026-09-20)
- [3]Hibernate ORM Apache-2.0 license(2026-09-20)
- [4]Hibernate ORM documentation(2026-09-20)
Supplemental curator note
Hibernate is best understood as a persistence framework managing entity state and transaction boundaries rather than merely hiding SQL. Lazy loading and dirty checking are powerful, but careless session scope and fetching can create N+1 queries or unexpected SQL, so generated statements and fetch strategies should remain observable.
Try it in 3 steps
- 1
Clone Hibernate ORM
Fetch the source tree to inspect the framework structure and test setup.
git clone https://github.com/hibernate/hibernate-orm.git && cd hibernate-orm - 2
Run core tests with H2
Use embedded H2 to exercise Hibernate core without provisioning an external database.
./gradlew hibernate-core:test -Pdb=h2 - 3
Move to the official application configuration guide
For application use, configure the hibernate-core dependency and JDBC connection, then inspect mappings, transactions, and generated SQL.
https://hibernate.org/orm/documentation
Growth
Growth trends · Last 30 days
6,470 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 247
- Open PRs
- 137
- Issues opened
- 0
- Issues closed
- 0
- PRs opened
- 609
- PRs merged
- 513
Issues
0 / 0
Pull requests
609 / 513
Maintenance
- Median first response
- Not specified
- Issue response rate
- No eligible issues
Based on up to the 100 newest issues opened by external users in the last 90 days. A first comment from an OWNER, MEMBER, or COLLABORATOR counts as a response; issues whose full comment history cannot be checked are excluded. The median and response rate update weekly.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- hibernate
- java
- orm
- jpa
- jdbc
- database
- envers
- jakarta-persistence
- jakartaee
- object-relational-mapper
- object-relational-mapping
- persistence
- Stars
- 6,470
- Forks
- 3,816
- Watchers
- 291
- Open issues
- 0
- Contributors
- 362
- Primary language
- Java
- License
- Apache-2.0
- Repository last updated
- Sep 20, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- React250,594 Stars
A JavaScript library for building web and native user interfaces from declarative components.
JavaScript - Visual Studio Code192,699 Stars
The MIT-licensed Code - OSS repository that forms the open foundation of Visual Studio Code.
TypeScript - Flutter179,011 Stars
A BSD-3-Clause cross-platform SDK for building mobile, web, and desktop UIs from a Dart codebase.
Dart - Bootstrap174,857 Stars
A responsive, mobile-first web framework built from CSS and JavaScript grids, utilities, and components.
MDX - LangChain146,686 Stars
A Python framework that connects models, tools, retrieval systems, and other components for LLM applications and agents.
Python
Report incorrect information
Tell us if any listing information is incorrect or outdated.