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
0 answers

@query annotation doesn't work with hibernate-ogm and mongodb in spring boot

I wrote a Spring boot,hibernate orm application using mysql database.... But now I want to switch to mongodb... I used Hibernate-ogm for fulfill my requirement. When run the application the console shows successfully switch to mongodb using…
vidarshana
  • 80
  • 3
  • 12
0
votes
0 answers

How to find hibernate orm or hibernate ogm use to connect for my mongodb server in spring boot

hibernate.ogm.datastore.mongodb.impl.MongoDBDatastoreProvider** for connect mongodb to my spring boot application.I use JPA for my repositories. I cannot change jpa repositories because I previously use MySQL for project... I want to switch to…
vidarshana
  • 80
  • 3
  • 12
0
votes
1 answer

Hibernate OGM map a Map element collection

I 'm stuck in a situation where my Entity has a field of type Map. Trying to index data using a massIndexer I fell in this Exception that is mentioning the word bug. The way I use the mapping is presented…
0
votes
2 answers

When I try to use Hibernate ogm and spring boot the console gives "Could not instantiate named strategy class" error

I tried to connect hibernate ogm,Spring boot and mongodb.I used jpa for my development. So I selected Hibernate ogm... When I try to run the application the console gives below error. org.springframework.beans.factory.BeanCreationException: Error…
vidarshana
  • 80
  • 3
  • 12
0
votes
3 answers

Hibernate OGM pagination-scroll

let's suppose that we have a huge mongodb collection (around 60,000,000 records) and we want to scroll over it without fetching of course a huge amount in memory. For Hibernate orm, it's possible as there is the scrolling api and criteria queries…
Panos
  • 11
  • 5
0
votes
1 answer

Hibernate Ogm 2nd query based on 1st query result and also can't get mapped object fields(other than id) after update

i am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.6) @Entity @Table(name = "currency_master) @JsonInclude(Include.NON_EMPTY) public class CurrencyMaster{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @JsonSerialize(using…
vishvas4u
  • 41
  • 9
0
votes
1 answer

JBoss WildFly 11, Hibernate ORM 5.2, OGM 5.3 and MongoDB - zero length array of Objects

I have a MongoDB collection and document with an embedded array of objects: 'qtyContents'. Populated with test String data for the PoC: id:5aa2c7b4aaa32bcb1d7cfc93 ean: "05052319711639" qtyContents : Array 0 : Object quantity : "1.1"…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
2 answers

JBoss WildFly 11, Hibernate ORM 5.2, OGM 5.3 and MongoDB - OgmIntegrator not found

Progressing slowly through trying to get Hibernate ORM 5.2 working with OGM 5.3 so I can use JPA with MongoDB. To remove the JNDI look-up error, referenced in the OGM FAQs: When using Hibernate OGM on top of WildFly, I’m getting a JndiException.…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
1 answer

Trying to use JBoss WildFly 11, Hibernate 5.2, OGM 5 and MongoDB - EAR won't deploy

Following the documentation: https://docs.jboss.org/hibernate/stable/ogm/reference/en-US/html_single/?v=5.3#ogm-gettingstarted I am trying to use JPA OGM with MongoDB. I have added the latest version of Hibernate ORM (5.2.14.Final) to the WildFly 11…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
2 answers

Trying to use JBoss WildFly 11, Hibernate 5.3, OGM 5 and MongoDB - EAR won't deploy

I am trying to use JPA OGM with MongoDB. I have added the latest version of Hibernate (5.3.0.CR1) to the WildFly 11 module folder: /usr/local/Cellar/wildfly-as/11.0.0.Final/libexec/modules/system/layers/base/org/hibernate/5.3.0.CR1 I have added…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
2 answers

Hibernate OGM Mongodb Aggregate Query not working with JPA setFirstResult and setMaxResult while next Execution

I am using Hibernate OGM (5.2.0.Alpha1) with MongoDB (3.4) While I am Executing String query ="db.student.find({'collegeName' :'VNSGU'})" for pagination With JPA setFirstResult() and setMaxResult(), It is working fine, but while executing…
Bharti Ladumor
  • 1,624
  • 1
  • 10
  • 17
0
votes
2 answers

Integrate hibernate ORM with Couchbase

I have been working on a legacy project which involves spring,hibernate and mariadb. Now there is a requirement where I need to migrate from mariadb to couchbase as well. I am assuming that there should not be significant level of code changes. I…
Ajay Gupta
  • 51
  • 2
  • 9
0
votes
1 answer

Hibernate ORM with Hibernate OGM (MySQL with Neo4J)

Is it possible to create a single application with Hibernate ORM and OGM? I created an application and I am getting issues for multiple JPA in a single application. I resolved this by changing the sessionFactory name for both JPA, still there is a…
Vishrant
  • 15,456
  • 11
  • 71
  • 120
0
votes
1 answer

Hibernate OGM Aggregate Query result fields not working with Wrapper Types

I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) Example: @Entity @Table(name = "jangad") @JsonInclude(Include.NON_EMPTY) public class Jangad { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @JsonSerialize(using =…
vishvas4u
  • 41
  • 9
0
votes
2 answers

Hibernate OGM with Mongodb Result of 2nd Query on same table dependent on Result fields of 1st query of same table

I am using Hibernate OGM (5.2.0.Alpha1) with Mongodb (3.4) @Entity @Table(name = "service") @JsonInclude(Include.NON_EMPTY) public class Service { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "SERVICE_ID",…
vishvas4u
  • 41
  • 9