Questions tagged [hibernate-ogm]

Hibernate Object/Grid Mapper (OGM) provides Java Persistence (JPA) support for NoSQL solutions. It reuses Hibernate Core's engine but persists entities into a NoSQL data store instead of a relational database. It allows applications to continue to use Java Persistence Query Language (and Hibernate HQL extensions) to search their data.

From Hibernate OGM Reference Guide Hibernate OGM offers a familiar programming paradigm to deal with NoSQL stores, moves model denormalization from a manual imperative work to a declarative approach handled by the engine and encourages new data usage patterns and NoSQL exploration in more "traditional" enterprises

Hibernate OGM also aims at helping people scale traditional relational databases by providing a NoSQL front-end and keeping the same JPA APIs and domain model.

Related Stack Overflow Question:

Related Tags:

229 questions
47
votes
10 answers

Hibernate with MongoDB

I'm looking for resources showing how to integrate MongoDB with Hibernate (preferably from within spring) so that I can switch between a RDBMS and a NoSql alternative: does anyone have experience doing this?
adwk
  • 531
  • 2
  • 5
  • 7
41
votes
3 answers

What's the difference between Spring Data MongoDB and Hibernate OGM for MongoDB?

I have not used Spring Data before but I've used Hibernate ORM a number of times for MySQL based application. I just don't understand which framework to choose between the two for a MongoDB based application. I've tried searching for the answer but…
user794783
  • 3,619
  • 7
  • 36
  • 58
8
votes
1 answer

Hibernate OGM Neo4j (5.0 ) Wildfly 10 Error. Provider org.hibernate.ogm.service.impl.OgmIntegrator not a subtype

I am getting this error while deployment of ear . org.jboss.msc.service.StartException in service jboss.persistenceunit."test.ear/server.war#graphdb": java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider…
Shettyh
  • 1,188
  • 14
  • 27
6
votes
2 answers

Should we use OGM/ORM like hibernate in java for Mongodb?

Recently, I have started working on mongo. As the whole concept of mongodb is schemaless and document-oriented, how can I transition relationships to entities? I have used hibernate ORM in java for mapping objects to tables. Is there a need to do…
Somil
  • 567
  • 5
  • 13
5
votes
4 answers

Hibernate Rest status code: 200 but entity not saved

I am trying to save an entity using Hibernate and Jersey. The JSON that I try to send is: { "firstname":"Jon", "middlename":"J", "lastname":"Smith", "dob":"10-10-1990", "gender":"male" } When I send it with Postman, I get Status: 200 OK but the…
Porjaz
  • 771
  • 1
  • 8
  • 28
5
votes
4 answers

Hibernate - OGM [PersistenceUnit: person] Unable to build Hibernate SessionFactory

i am getting an below error Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: person] Unable to build Hibernate SessionFactory at…
ihappyk
  • 525
  • 1
  • 5
  • 16
5
votes
1 answer

Combining SQL and NOSQL databases using Hibernate ORM and OGM

I have an application that uses SQL Server. I wanted to use a NOSQL store and I decided it to be graph since my data is highly connected. Neo4j is an option. I want optimally to be able to switch the databases without touching the application layer,…
Avise
  • 91
  • 1
  • 7
4
votes
1 answer

Hibernate configuration for MongoDB loadbalancing

I have got a small mongoDB cluster with 3 nodes (no sharding, only replication). Now the insertion to the primary node is propogating the new data to the secondary node as expected (basic replication). I am using java and hibernate. Now what I want…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
4
votes
1 answer

What is the difference between Hibernate OGM and Kundera

I am evaluating what might be the best framework option between kundera and Hibernate OGM. My Situation: Existing project uses hibernate ORM for contacting Mysql data store. Now i want to read/write to cassandra(2.1.9) data store in the same…
Prabhath
  • 629
  • 6
  • 13
3
votes
2 answers

Usage of Hibernate OGM with cloud MongoDB Atlas M0 (Free Tier)

I am trying to use MongoDB Atlas M0 (Free Tier) for my JAVA EE application, now I am using: Local MongoDB database (v4.0.4) Hibernate Core "hibernate-core 5.3.6.Final" Hibernate OGM "hibernate-ogm-mongodb 5.3.1.Final" Java application server…
espajava
  • 73
  • 1
  • 1
  • 9
3
votes
1 answer

Is it possible to use Java Configuration rather than persistence.xml for Hibernate OGM Persistence setup?

So far in all the documentations of Hibernate OGM I have never seen any example of setup using Spring's Java @Configuration. All the examples in the documentation and example projects use persistence.xml to configure the persistence-unit. Is there…
user4973
  • 85
  • 7
3
votes
1 answer

MongoDb authentication using Hibernate OGM

I'm able to authenticate on my mongodb using the shell command: #mongo -u user -p pwd --authenticationDatabase admin MongoDB shell version v3.4.1 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.1 > use admin switched to db…
Jordi
  • 20,868
  • 39
  • 149
  • 333
3
votes
1 answer

Write stream into mongoDB in Java

I have a file to store in mongoDB. What I want is to avoid loading the whole file (which could be several MBs in size) instead I want to open the stream and direct it to mongoDB to keep the write operation performant. I dont mind storing the content…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
3
votes
1 answer

How to get hibernate-ogm working on jboss eap 6.2?

I am trying to get hibernate-ogm with the monogodb provider working on jboss eap 6.2. I have configured my persistence.xml
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
3
votes
2 answers

Does Hibernate OGM support Neo4j in Server Mode?

Through different examples on Hibernate OGM for Neo4j, i can find that Neo4j can be used only in Embedded mode. If anyone has used Hibernate OGM with Neo4j in Server mode, please share the approach.
Navneet
  • 87
  • 6
1
2 3
15 16