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
1
vote
1 answer

Hibernate OGM Neo4j -Unable to access TransactionManager

I trying to build a JSF WebApplication using Neo4j as No-SQL-Databasing. I want to access Neo4j via Hibernate. My dependencies are org.hibernate.ogm
phe
  • 26
  • 6
1
vote
0 answers

NoSuchMethodError with Hibernate OGM

I'm working around with Hibernate OGM 5.0.0.Final with mongodb 3.2 using Spring 4, WildFly 10 This code below works fine with Object[] List result = em.createNativeQuery("{ \"id\": \"1\" }").getResultList(); But if I use entity to query…
Jyme
  • 332
  • 2
  • 13
1
vote
0 answers

how to map collection of double in embadable object?

@Entity public class foo{ @Id private long id; @Embedded private Bar bar; } @Embeddable public class Bar { @??? private List locations; } i am using hibernate Ogm and jpa and mongodb, when i persist Foo object then List…
1
vote
0 answers

IllegalArgumentException: Not an managed type

I am using Spring Data with Hibernate and mongo db. I am encountering the following stack while trying to deploy my webapp into Wildfly 10. Caused by: java.lang.IllegalArgumentException: Not an managed type: class class…
Rajesh
  • 419
  • 1
  • 6
  • 20
1
vote
1 answer

NativeQuery is better or HibernateOGM methods

I am using hibernate OGM to talk to my MongoDB instance. I had to get a list of all the products with category "abc". I am using the native query approach to achieve this as following: String stringQuery = "db.Message.find({'CATEGORY':'" + category…
1
vote
1 answer

The updated entity is not reflected in database using infinispan EmbaddedCache

Issue: The updated entity is not reflected in database using infinispan EmbaddedCache: Scenario: Infinispan version : 8.1 JDK 8 Created TestEntity class with id, name property, configured OGM using persistence.xml, configured jpa-store in…
Sats
  • 115
  • 1
  • 3
  • 13
1
vote
2 answers

OGM and ORM named queries in xml file

My application contains both ORM and OGM. For ORM I was wrote some named queries in xyz.hbm.xml. But while using OGM those queries caused for exception. I am using OGM 4.1.3.Final version. Please help someone. example.hbm.xml
Pankaj Saboo
  • 1,125
  • 1
  • 8
  • 27
1
vote
1 answer

Do hibernate OGM supports mongodb in sharded environment?

If yes, how do I provide multiple hosts in persistence.xml ? Can I use it with WiredTiger storage engine? Does it support mongodb 3.0 drivers?
Nilesh
  • 2,089
  • 3
  • 29
  • 53
1
vote
0 answers

OGM000059: Unable to find a GridType for string, Hibernate OGM, Redis

Hibernate OGM, Version 5 Alpha, Redis 3.0 on Windows, Java SE1.8 All Hibernate OGM Jar-Files Are in Classpath. If i remove the String Variable #name and the Setter-Getter Method of the Variable, it is working fine. OGM000068: Could not configure…
1
vote
2 answers

Cannot deploy Hibernate OGM (MongoDB) app to Wildfly

I develop a simple app for learning purposes. I used Wildfly 8 (and moved to 9) as my application server, Hibernate as JPA provider and MySQL as DB. The deployment worked smoothly with no problems. Since I wanted to learn how to use MongoDB and…
Royi Freifeld
  • 629
  • 2
  • 11
  • 31
1
vote
1 answer

Is it possible to connect a JPA implementation to a Neo4j specific version?

I have a Java project that use an embedded Neo4j database (NoSQL), version 2.0.0. I need to migrate this data for a traditional relational db (SQL). For this job, I thought that using an implementation of JPA could help. I found these three…
1
vote
0 answers

Dropping MongoDB database or its tables using JPA (Hibernate) in Play Framework

I'm trying to drop either the database or the table at the end of an integration test so that the next run will have a clean database to work with. I'm working with Java in the Play framework and we're using Mongo DB with Hibernate OGM. I've set the…
n00b
  • 5,843
  • 11
  • 52
  • 82
1
vote
0 answers

Hibernate (OGM + MongoDB) entities not found after persist

I'm working on a school project, building microservices to manage other microservices. We're using Apache Tomee, Hibernate OGM with a MongoDB provider and Arquillian for testing. The servers we are managing run docker and messaging, in the form of…
1
vote
1 answer

How to disable logging Neo4j queries in Hibernate OGM?

I'm using Hibernate OGM with Neo4j database. For every operation, like creating new entity, there are many log entries with Cypher queries produced: ... 2015-02-27 11:09:41.825+0000 INFO [org.neo4j]: CREATE (n:ENTITY:TreeElement {id: {0}}) RETURN…
Kao
  • 7,225
  • 9
  • 41
  • 65
1
vote
1 answer

Hibernate OGM with mongodb in an enterprise solution

I wanted to ask you, if you have any experience that Hibernate OGM works as much fine with mongodb, that it could be used in an enterprise solution without any worries. With other words - does this combination work as fine as for example Hibernate…
Martin Dvoracek
  • 1,714
  • 6
  • 27
  • 55