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
0
votes
1 answer

Hibernate OGM - MongoDB: How to retrieve data in read-only mode to improve performance

I have a Java application that use Hibernate OGM framework and Mongo database. When I retrieve a lot of data, the application becomes very slow and one of the bottlenecks is Hibernate. I read that retrive data in a read-only context improve…
user8110728
0
votes
1 answer

has Hibernate ogm memory leak? (Or something is not closing well)

I'm trying to persist a lot of data but I always got a "memoryOutException". I already tried flush, clear, close... everything that every kind of solution presented here in SOF.. and none worked, my memory keep growing and the persist/commit is…
0
votes
2 answers

Waiting times for Hibernate errors too long

Why the output stream receive errors immediately, while the exceptions in try-catch arrive after a long time (even after several minutes)? I'm using Hibernate OGM which interfaces with a Mongo database. Can anyone tell me what is the problem? How to…
user8110728
0
votes
3 answers

Hibernate configuration with MongoDB

I've been trying to mess around with MongoDB and Hibernate in Java. I'm having some troubles with the configuration file for it. I've already used Hibernate in the past with SQL DB, but it seems that the config file has to be quite different for…
0
votes
1 answer

How to handle authentication to Mongo database from Hibernate application

I need to catch errors during authentication (like wrong parameters). I find nothing about it. I have isolted the procedure with threads. But with this bad way, the user can't understand what goes wrong Below, my code: public static boolean…
user8110728
0
votes
1 answer

hibernate.ogm.datastore.create_database not working for MongoDB

I am trying a simple Mongo DB and Hibernate OGM example. Here is my persistence.xml
Abhishek
  • 1,175
  • 1
  • 11
  • 21
0
votes
2 answers

Integrating Hibernate OGM and Spring Data JPA

How can we integrate Hibernate OGM with Spring Data JPA, so that existing application containing Hibernate ORM can be used with Hibernate OGM. This is the configuration i'm currently using for Hibernate ORM @Bean(name = "jdbc") public…
0
votes
1 answer

Hibernate Search exception while trying to build indexes

I'm trying to add hibernate search support for hibernate OGM mongo DB application. I'm regularly getting following exception while I'm trying to rebuild indexes using fullTextEntityManager.createIndexer(Post.class) …
0
votes
1 answer

Connecting Cassandra by Hibernate in Wildfly

After days of erros I hope anyone can help me out. I want to connect a cassandra (3.9) by Hibernate (5.1) to Wildfly Swarm (10.1.0). I followed the instruction from How to package Hibernate OGM applications for WildFly 10 and added all required…
0
votes
1 answer

Hazelcast exception with hazelcast-hibernate5

I am using Hibernate OGM 5.1.0.Final and hazelcast-hibernate5 1.1.3 ( even checked with 1.2 ). The OGM compatible hibernate ORM dependency is 5.1.5 , which is present in POM. Caused by: java.lang.IncompatibleClassChangeError: Expected static method…
Rajesh
  • 419
  • 1
  • 6
  • 20
0
votes
1 answer

Hibernate OGM Upgrade causing Mongo authentication issue

I am trying to upgrade my application with the following : Mongo db 2.6.5 to 3.4.2 Hibernate OGM from 4.2.0.Final to 5.1.0.Final I am getting Authentication failure with OGM 5.1 , however it works fine with OGM 4.2 Exception stack…
Rajesh
  • 419
  • 1
  • 6
  • 20
0
votes
1 answer

Error when doing mvn wildfly:deploy: Couldn't determine main side role for collection com.sensorhound.aigateway.domain.IOConfiguration.nodeData

Hey, Guys. I have an error when I do mvn wildfly:deploy. I am using wildfly 10.1.0.Final, hibernate ogm 5.0.10.Final and Cassandra 3.0.9. Here is the full error massage: [ERROR] Failed to execute goal …
0
votes
1 answer

createQuery not working but createNativeQuery works

guy, I have a very strange problem. I am setting up some endpoints in my application and I have an endpoints like this: @Path("/ioconfiguration") public class IOConfigurationEndPoint { @EJB private static IOConfigurationDAO…
LebroNan
  • 149
  • 7
  • 18
0
votes
1 answer

Hibernate OGM fetch all data from collection using RESOURCE_LOCAL transaction type

I am trying to fetch all the data from a single collection in MongoDB using Hibernate OGM transaction type RESOURCE_LOCAL as follows : Persistence.xml
Sowmya
  • 453
  • 1
  • 5
  • 18
0
votes
1 answer

Error when try start wildfly server and deploy project, using wildfly 10.1.0.Final, hibernate ogm 5.0.10.Final and Cassandra 3.0.9

I have some troubles deploy my project. I am able to start the wildfly server with errors but I cannot deploy my project. Here is the error message: [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.1.0.Final:deploy…
LebroNan
  • 149
  • 7
  • 18