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

Issue when trying to persist a embedded document of Map in Hibernate OGM

In my app i am using Hibernate OGM to persist data in MongoDB. I have the following structure of classes: Historic: @Entity(name = "historic") public class Historic { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Type(type =…
Jose Victor
  • 350
  • 1
  • 5
  • 13
0
votes
1 answer

Hibernate OGM With Mongodb Count query with $gt $gte $lt $lte not working with less than 1

I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) I executed Mongodb Count Query Using Hibernate OGM by 2 below way (1). Count query using Mongodb count query db.tablename.count({..}) (2). Count query by Mongodb Aggregate…
vishvas4u
  • 41
  • 9
0
votes
0 answers

Suggestions for Hibernate Search Cluster and OGM MassIndexer Tuning

Last days I'm working out in building a productive Hibernate Search Cluster using jgroups HS backend, infinispan directory provider(soft-index-file-store) on a MongoDB (around 30million records). Using OGM massIndexer in a standalone local wildfly…
0
votes
2 answers

Hibernate OGM result of aggregation query

I am using hibernate ogm 5.1 in my application and I construct this query. This query String query = "db.SWMessages.aggregate( [ {0}, {1} ] )"; Document q1 = new Document("$match",new Document("messageUuid",new Document("$ne" ,…
IsidIoan
  • 403
  • 2
  • 5
  • 13
0
votes
0 answers

how to configure full text search in spring boot Neo4j?

I am using spring boot 4.2.x But I found a code to modify the configuration from to work with spring boot configartion class. I did manage to get the search working by changing the config of the neo4j like here . But I am trying to do the same from…
Abdullah Al Noman
  • 2,817
  • 4
  • 20
  • 35
0
votes
0 answers

Hibernate OGM on Wildfly not storing entities

I am trying to store an entity using Hibernate OGM 5.1 on Wildfly 10.1 with MongoDb. Nothing is being stored. When the persistence code runs, it gets no exceptions. There are no warnings or exceptions in the Wildfly logs. The logs indicate a…
SteveB
  • 483
  • 1
  • 4
  • 18
0
votes
1 answer

Problems deploying Hibernate OGM for Mongodb persistence on Wildfly 10.1.0

I am getting an error when deploying an application on Wildfly 10.1.0 when using a Hibernate OGM persistence unit for Mongodb. After trying several combinations of modules and configuration, I am following the answer to this post. I believe I have…
SteveB
  • 483
  • 1
  • 4
  • 18
0
votes
2 answers

java.lang.UnsupportedOperationException: Unrecognized property type: org.hibernate.type.BagType

I am trying to run following hql but getting Caused by: java.lang.UnsupportedOperationException: Unrecognized property type: org.hibernate.type.BagType(org.model.Test.groups) error. Query query = session.createQuery("from Test t " + …
likeachamp
  • 765
  • 4
  • 11
  • 21
0
votes
1 answer

Does hibernate OGM fully supports IBM Cloudant NoSQL database

I am wondering if Hibernate OGM is actually compatible with IBM cloudant No SQL database? Have anyone tried this out? If not, Is there any other OGM which can deal with all the popular NOSQL databases?
vicky
  • 890
  • 4
  • 23
  • 54
0
votes
1 answer

How to delete data from mongodb v3.4 with hibernate ogm 5.1.0?

I am only able to retrieve data and insert data in mongo DB v 3.4 using Hibernate OGM 5.1.0.Final. I am not able to perform delete operation or update operations. Can anyone help me out with an example?
Rohit Mehlawat
  • 121
  • 1
  • 1
  • 6
0
votes
1 answer

Hibernate OGM simple REST API

I am trying to build a simple REST API with Jersey and Hibernate. The database that I am using is Neo4j. Whenever I try to do a simple GET request, I get 500 error and I am not sure what I am doing wrong. My project structure is like this: Here is…
Porjaz
  • 771
  • 1
  • 8
  • 28
0
votes
2 answers

Hibernate Neo4j create relationships from one class

I am trying to use Hibernate to store family tree information. From what I have seen in the documentation, in order to connect two or more entities, they have to be from different classes. So, in order to create relationships between husband and…
Porjaz
  • 771
  • 1
  • 8
  • 28
0
votes
0 answers

How to store Documents in Array using Hibernate OGM?

I'm new to Hibernate OGM. Here I'm using MongoDB as my Database. I have three POJO classes and Employee and Address and Work. 1. Employee.java import java.util.ArrayList; import java.util.List; import javax.persistence.ElementCollection; import…
Viswa
  • 45
  • 1
  • 2
  • 9
0
votes
1 answer

Hibernate OGM MongoDB DBRef support

Does Hibernate OGM support MongoDB DBRefs? If no, how this support may be added? I guess Hibernate should provide any extension mechanism like custom type mapper, converters or something like that. Thanks! PS. Please, be constructive and don't write…
S2201
  • 1,339
  • 3
  • 18
  • 35
0
votes
1 answer

hibernate-ogm-5.1.0 final with wildfly 10 neo4j module error

I want to configure hibernate-ogm with wildfly 10+ neo4j but getting this error. Can any one help?
hadi zafar
  • 13
  • 2