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

hibernate ogm dependency issue with embedded infinispan

I am trying to test OGM with Infinispan embedded mode, with a simple entity, repository & service class. @Entity @Table(name="test_person") public class PersonEntity implements Serializable { @Id @GeneratedValue(strategy =…
Rajesh
  • 419
  • 1
  • 6
  • 20
0
votes
0 answers

Syntax Error in query Hibernate OGM 5.4.1 final when jar but running from eclipse, working fine build jar from gradle

When I hit the API from postman, Data needs to be fetched from Mongodb but it's not able to fetch the records from mongodb via hibernate ogm since it's showing error as syntax error in query hibenrateExpection via jar file. but when I try to run it…
Viswa
  • 45
  • 1
  • 2
  • 9
0
votes
1 answer

Hibernate OGM ~ Discriminating Polymorphic Objects (Abstract Superclasses)

I have a data model for MongoDB in Java that uses abstract superclasses to discriminate between polymorphic objects like this: [Object that gets saved in the database] └[List] ├[SubclassA extends AbstractSuperclass] ├[SubclassB…
Kira Resari
  • 1,718
  • 4
  • 19
  • 50
0
votes
0 answers

Entity with field Array of objects. How to correctly describe this Entity use Hibernate ogm?

I am a tester. I 'm doing my first java automation project using Hibernate ogm. I 've been thinking about this problem several days, but I can 't find a solution. This is my document in bd: enter image description here This is Entity: enter image…
jbelyaeva
  • 21
  • 3
0
votes
1 answer

How to get hibernate-ogm working on jboss eap 7.2?

pom.xml org.hibernate.ogm hibernate-ogm-mongodb 5.4.1.Final
Saisha
  • 21
  • 4
0
votes
0 answers

Hibernate ogm infinispan @manytoone bidirectional issue on wildfly 17

I face an issue when i use infinispan ogm with a file-store configuration. My issue is the following. I have deployed on wildfly 17 a very little REST application able to persist and read very simple data model. The data model is composed of a…
guigui
  • 1
  • 1
0
votes
0 answers

When I add decimal value into always encrypted database it shows error

This is main Class Code public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); EmployeeService employeeService =…
0
votes
1 answer

org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.ogm.service.impl.OgmConfigurationService]

I've created an application that implements hibernate OGM with MongoDB. It runs perfectly fine inside Eclipse however, when I build a fat jar and attempt to run it I get the following error: Exception in thread "main"…
Joe T
  • 1
  • 2
0
votes
0 answers

Mongo in JPA presistance

I am trying to connect mongo in Java EE7 with persistence, but I am not able to deploy the application in glassfish getting below error please help us to resolve the issue pom.xml
0
votes
1 answer

What is the roadmap of hibernate-ogm regarding Criteria queries?

I am considering migrating an application from hibernate/MySQL to hibernate-ogm/MongoDB. However my application relies heavily on criteria queries. I see that in 5.4.1 they are not supported yet. Does someone know what are the plans ahead for…
Jose Duarte
  • 129
  • 1
  • 6
0
votes
1 answer

Hibernate-OGM JpaRepository: getSessionFactory() with incompatible return types

Trying to configure Hibernate-ogm for MongoDB in a Spring-Boot project, the application fails to start because of two methods getSessionFactory() having the same signature but returning incompatible types: interface…
1Z10
  • 2,801
  • 7
  • 33
  • 82
0
votes
1 answer

Hibernate-OGM-MongoDB: how to create/update collections on start-up?

I'm trying to configure Hibernate-OGM for MongoDB in a Spring-Boot application, but it is not creating the corresponding collections in the DB running locally. This is my pom.xml:
1Z10
  • 2,801
  • 7
  • 33
  • 82
0
votes
1 answer

SAP hana hibernate-ogm support documentations and samples

Hello Experts i am working on connecting hana document store which is no SQL data base shipped as part of hana rdbms ,but could not found any material on its support vi hibernate OGM ,can you please guide me if its possible or any samples available…
SCD
  • 89
  • 2
  • 10
0
votes
1 answer

Hibernate OGM doesn't persist entities without transaction

I've just reinstalled Eclipse on another machine and imported a project that used to work (it was saving entites in mongodb without transaction). The code is just this MyEntity ent = new MyEntity(); ent.setTitle("title"); EntityManager e…
alfredopacino
  • 2,979
  • 9
  • 42
  • 68
0
votes
1 answer

Create Jpa EntityManager that manages MongoDb connection with java code configuration

I need to define two different persistent units, one for a mysql db and the other for a mongodb, I'm trying to create with Spring's @Configuration the entityManager that will manage Mongo but the application fails at Spring's bootstrap with the…