Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. MongoDB
  3. Hibernate OGM

Hibernate OGM

LGPL-2.1Java

Hibernate OGM enables JPA-based domain model persistence for NoSQL datastores using familiar Hibernate APIs.

Visit WebsiteGitHubGitHub
326 stars196 forks0 contributors

What is Hibernate OGM?

Hibernate OGM is a Java persistence framework that enables developers to store domain model data in NoSQL datastores using the Hibernate ORM engine and JPA annotations. It solves the problem of bridging object-oriented domain models with NoSQL databases by providing a familiar JPA-based API while supporting various NoSQL backends like MongoDB, Infinispan, and Neo4j.

Target Audience

Java developers building applications that require persistence in NoSQL datastores but want to use standard JPA annotations and Hibernate tooling. It is particularly useful for teams already familiar with Hibernate ORM who need to integrate with NoSQL databases.

Value Proposition

Developers choose Hibernate OGM because it allows them to use the same JPA annotations and Hibernate APIs they already know, reducing the learning curve and enabling code reuse across different persistence layers. It provides a unified approach to NoSQL persistence while integrating seamlessly with the broader Hibernate ecosystem.

Overview

Hibernate OGM - Domain model persistence for NoSQL datastores

Use Cases

Best For

  • Java applications needing JPA compatibility with NoSQL backends
  • Teams familiar with Hibernate ORM transitioning to NoSQL databases
  • Projects requiring domain model persistence across multiple NoSQL datastores
  • Integrating Hibernate Search or Hibernate Validator with NoSQL data stores
  • Applications leveraging Infinispan, MongoDB, or Neo4j with JPA annotations
  • Reducing boilerplate code for NoSQL data access in Java applications

Not Ideal For

  • Projects requiring active maintenance and compatibility with the latest Hibernate ORM versions, as the project is archived and unsupported.
  • Applications that need to leverage native NoSQL features or complex queries not abstracted by JPA, such as graph traversals in Neo4j or aggregations in MongoDB.
  • Teams needing robust community support or frequent updates for production-critical environments, due to the archived status and lack of recent development.

Pros & Cons

Pros

JPA Standardization

Allows developers to use familiar JPA annotations for NoSQL persistence, enabling code reuse and reducing vendor lock-in, as highlighted in the README's focus on writing models once.

Hibernate Ecosystem Integration

Seamlessly integrates with Hibernate tools like Search and Validator, leveraging existing Hibernate knowledge and tooling for a unified development experience.

Multi-Datastore Flexibility

Supports core datastores like MongoDB and Neo4j, plus contrib ones such as Cassandra and Redis, offering broad backend options without changing application code.

Familiar API

Uses Hibernate's well-known APIs, minimizing the learning curve for teams already experienced with Hibernate ORM, as emphasized in the README.

Cons

Archived and Unmaintained

The project is explicitly marked as archived and not updated with latest Hibernate ORM versions, posing risks for bugs, security issues, and compatibility in new projects.

Abstraction Overhead

The JPA layer may introduce performance penalties or limit access to datastore-specific optimizations, which can be critical for high-throughput NoSQL applications.

Complex Build Configuration

Setup requires managing multiple Maven profiles and environment variables for different backends, as seen in the detailed build instructions, increasing initial complexity.

Frequently Asked Questions

Quick Stats

Stars326
Forks196
Contributors0
Open Issues0
Last commit1 year ago
CreatedSince 2011

Tags

#object-mapping#redis#couchdb#java#nosql#hibernate#mongodb#neo4j#jpa#cassandra

Built With

J
JPA
M
Maven
J
Java

Links & Resources

Website

Included in

MongoDB2.6k
Auto-fetched 1 day ago

Related Projects

mongo-java-drivermongo-java-driver

The official MongoDB drivers for Java, Kotlin, and Scala

Stars2,662
Forks1,499
Last commit1 day ago
Spring Data MongoDBSpring Data MongoDB

Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.

Stars1,688
Forks1,142
Last commit1 day ago
MorphiaMorphia

MongoDB object-document mapper in Java based on https://github.com/mongodb/mongo-java-driver

Stars1,675
Forks450
Last commit1 day ago
JongoJongo

Query in Java as in Mongo shell

Stars586
Forks146
Last commit7 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub