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
1
vote
2 answers

Could not open JPA EntityManager for transaction using MongoDB

Trying to use Spring, Hibernate-OGM with MongoDB. However getting an issue with transactions. I know they are not supported by MongoDB however I want to use annotation @transactional so I dont have to do begin, commit.…
Dima
  • 1,045
  • 14
  • 23
1
vote
1 answer

Hibernate OGM with MongoDB using NamedQueries

question is simple does Hibernate OGM actually supports NamedQueries at current time ?
Dima
  • 1,045
  • 14
  • 23
1
vote
1 answer

Hibernate OGM OneToMany self reference

I am using Hibernate OGM with MongoDB and have an Entity like the following : @Entity public class Card implements Serializable, Comparable { private static Logger logger = LoggerFactory.getLogger(Card.class); @Id …
Snorky35
  • 426
  • 6
  • 15
1
vote
1 answer

JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'

I try to deploy an application what uses hibernate ogm and I always get the error "Failed to get adapter for persistence provider 'org.hibernate.ogm.jpa.HibernateOgmPersistence'". I have installed the module ogm under…
sbc
  • 11
  • 1
1
vote
0 answers

Unexpected error during MassIndexer operation

I am using the following code to create hibernate search index: OgmConfiguration cfgogm=new OgmConfiguration(); cfgogm.configure("hibernate.cfg.xml"); serviceregistry=new…
TangoStar
  • 551
  • 2
  • 8
  • 24
1
vote
1 answer

How to upload a File with hibernate-ogm and Mongodb?

I have been able to upload Strings and Dates into a Mongodb, but I cannot figure out how to get a file in there using a webapp. I'd rather not use GridFS, but something like a byte[] or a blob (but if I must use GridFS, then, I must). Here is what I…
Jeff
  • 4,285
  • 15
  • 63
  • 115
1
vote
2 answers

unable to connect to Mongodb using HibernateOGM

I want to use HibernateOGM to interact with MongoDB. I have an cfg.xml file like this: org.transaction.JDBCTransactionFactory
TangoStar
  • 551
  • 2
  • 8
  • 24
1
vote
2 answers

hibernate with mysql to MongoDB

Hi I have planned to migrate from Hibernate with MySQL to MongoDb Does any one know eigther Hibernate OGM is good or Spring data or any think else
Murali
  • 319
  • 2
  • 5
  • 9
0
votes
0 answers

JPA framework for both SQL and NoSQL databases

We are currently designing a new Spring Boot microservice and we are searching for technology, which can allow us to implement a single interface to use both SQL and NoSQL databases. For now, we use document-oriented database in our prototype, but…
0
votes
0 answers

jakarta.persistence.PersistenceException: No Persistence provider for EntityManager named Mdb (ktor)

I'm trying to create a JPA in Ktor that can access MySQL and MongoDB using the same application. The MySQL part is working fine. But I'm unable to connect with mongoDb. I'm getting the error message jakarta.persistence.PersistenceException: No…
Anandakrishnan
  • 347
  • 1
  • 4
  • 18
0
votes
1 answer

Hibernate-OGM (neo4j) deserted

Lastly, I've interested in hibernate ogm. I've realized last release is from 2018!!! Is this project deserted? I've currently involved into a neo4j project, and would like to configure it.
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
1 answer

How to use Hibernate ORM 5.5.x.Final with Jakarta 9 on wildfly-preview-25.0.0.Final

Have been running Hibernate OGM (using MongoDB) for a number of years. Currently using WildFly 25.0.0.Final: /wildfly-25.0.0.Final/modules/org/hibernate/ogm/internal/parboiled/5.4/asm-util-6.0.jar…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
0 answers

wildfly-preview-25.0.0.Final - Jakarta 'org.hibernate.ogm.jpa.HibernateOgmPersistence' not found

Trying to move my (working) PoC from WildFly 25.0.0.Final - Jakarta EE 8 Full to: WildFly 25.0.0.Final - Preview EE 9.1 Distribution Using HibernatePersistenceProvider with MySQL & MongoDB:
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
1 answer

mongoDB hibernate-ogm (5.4.1.Final) remove entity keeps _id field

I am using hibernate-ogm and Apache Deltaspike Data to save and remove a simple entity in mongoDB. Saving works. But removing an entity, empty all fields except _id. @Entity public class MyEntity implements Serializable { @Id …
kem
  • 407
  • 1
  • 6
  • 20
0
votes
1 answer

Fail to connect to MongoDB via HibernateOGM using sessionFactory

I am developing an application that uses Hibernate OGM to work with MongoDB. sessionFactory is used to connect, encountered an error while configuring. Log: ... 2020-12-21 11:09:06 INFO DatastoreProviderInitiator:51 - OGM000016: NoSQL Datastore…