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

Difference between Configuring MongoDB using Annotations and Hibernate OGM

Can anyone please clear me whether using MongoDB Annotations or implementing MongoDB using Hibernate will be Consistent.
krishna
  • 343
  • 2
  • 5
  • 19
0
votes
1 answer

Unable to remove elements from mongoDB using hibernate OGM

I am using the following code to remove all the elements from mongoDB collection with a given parent_id: final String strQuery = "db.Child.remove({'$query':{'PARENT_ID':'" + parentId + "'}})"; final Query query =…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
0
votes
1 answer

org.wildfly.extension.undertow JBAS010409: Unbound data source

i am trying to learn open source project on GitHub. its multi-module project and for that, I can execute mvn clean install successfully.but the problem is when I go to deploy using mvn wildfly:deploy -DskipTests=true it gives errors below.so how can…
Yogesh Doke
  • 1,706
  • 2
  • 12
  • 20
0
votes
1 answer

org.hibernate.resource.transaction.TransactionCoordinatorBuilder class not found..I am trying to use mongodb

I am new to hibernate ogm. I tried one small example it giving exception public static void main(String[] args) { TransactionManager transactionManager=com.arjuna.ats.jta.TransactionManager.transactionManager(); try { …
0
votes
1 answer

How to solve Hibernate OGM startup error for MongoDB configured via hibernate.cfg.xml?

Trying to connect to a MongoDB instance, I'm getting this error: Here's my current approach to configure the environment via hibernate.cfg.xml thread
Sooriya
  • 73
  • 1
  • 8
0
votes
1 answer

Can you get metrics and statistics from Hibernate OGM?

I'm trying to get performance data from Hibernate OGM. It doesn't seem to have the Hibernate statistics classes like Hibernate ORM. Is there something equivalent?
Albert T. Wong
  • 1,535
  • 1
  • 13
  • 21
0
votes
2 answers

Java MongoDB driver can't parse query

I'm developing project with hibernate-ogm 5 with mongodb 3. But some query can not parsed. But I tested this query on shell. It works. What's wrong with this query? com.mongodb.util.JSONParseException:…
hurelhuyag
  • 1,691
  • 1
  • 15
  • 20
0
votes
1 answer

Enable SSL for mongoDB using hibernate OGM

I am using hibernate OGM to interact with mongoDB. As part of business requirement, I need to enable ssl for the communication between mongodb and my java application. I see in mongodb documentation that using the mongodb-java-driver, it is as…
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
0
votes
1 answer

Missing collections in entities using Hibernate OGM with mongodb

The collections in my entities don't get persisted, whether it's a simple collection or association. I'm using OGM with mongodb. For an example of the problem consider the following entities: @Entity class Document { @Id …
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
0
votes
1 answer

Table per concrete class with Hibernate OGM and mongodb

I'm using mongodb to store json documents, and since I'm using Hibernate ORM for my relational models I've decided to use the OGM for the mongo ones. Currently all of my OGM entities share the same parent class, it looks something…
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
0
votes
1 answer

Getting hibernate persistence-unit classes from both ORM and OGM

I'm trying to use both of hibernate's orm and ogm in the same application. In my persistence.xml I have two persistence-unit:
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299
0
votes
1 answer

jpa-store and hibernate OGM

Issue: Try to configure infinspan cache with jpa-store and hibernate OGM. I can able to access the infinispan server cache through hotrod client with simple cache store, the configuration is follows, I have configured following in…
Sats
  • 115
  • 1
  • 3
  • 13
0
votes
1 answer

Can I use Hibernate OGM with Cassandra?

Can I use Hibernate OGM with Cassandra? Is it appropriate? or are there any alternatives to it? What is the better project architecture?
prem30488
  • 2,828
  • 2
  • 25
  • 57
0
votes
1 answer

@Embeddable with UUID unique key in hibernate-mongo-ogm

I have an embeddable collection and i want to have a auto-generated UUID field in it. I am using hibernate ogm with mongoDB. I am trying the following code but it results in the following exception: @Embeddable public class Attachment { @Id …
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40
0
votes
0 answers

hibernate OGM exception when JPAPersistService starts

I have the following persistence.xml file for my mongoDB connection:
Obaid Maroof
  • 1,523
  • 2
  • 19
  • 40