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

Measuring performance of MongoDB + Hibernate OGM in application

I have an application (MongoDB + Hibernate OGM) that contains some features. I would like to measure the performance of the persistence technology for certain operations (search, adding, deleting etc.) for those particular features. Because I am…
user3125591
  • 113
  • 5
  • 13
0
votes
1 answer

Object inheritance in Neo4j hibernate OGM

I'm doing a POC on a Hibernate OGM implementation for Neo4j. In doing this, I've created the following objects: @Entity public class AutoDealership { private String name; public AutoDealership(String nam){ this.name = nam; } @Id public…
0
votes
1 answer

Hibernate OGM com MongoDB and JTA on Glassfish - javax.persistence.PersistenceException

Using Hibernate OGM, MongoDB and JTA on Glassfish 4.1. When a try to persist a get an error with this: Caused by: javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: could not get a field value by reflection…
0
votes
1 answer

Unable to connect to MongoDB from local machine to Openshift using persistence.xml and hibernate ogm 4.1.1

I'm struggling to connect my jboss running on my local machine to a MongoDB database in Openshift. It works fine using a local database (localhost:27017). My persistence.xml:
JGS
  • 813
  • 2
  • 8
  • 17
0
votes
1 answer

java.lang.NoSuchMethodError: org.hibernate.ogm.cfg.OgmConfiguration.addAnnotatedClass

I am building a project called Calorie Counter using Spring, Hibernate OGM and MongoDB. The following is my HibernateUtil.java. package com.myCode.utility; import org.hibernate.SessionFactory; import org.hibernate.cfg.Environment; import…
0
votes
2 answers

json can't serialize type with MONGODB and Hibernate-OGM

I am trying to run a very simple query using Hibernate NamedQuery and MongoDB. However when I am trying to add ENUM field into the WHERE condition it throws an exception below. Without enum in WHERE condition works as…
Dima
  • 1,045
  • 14
  • 23
0
votes
1 answer

Hibernate ogm Neo4j entitymanager error

I'm trying to connect to Neo4j database. My database is downloaded from Neo4j site "Cineacts Actors &Movies". It located on C:\NewMovies here comes my Application: public class App { private static final String JBOSS_TM_CLASS_NAME =…
Kula
  • 125
  • 3
  • 15
0
votes
1 answer

Error flushing data org.neo4j.graphdb.NotInTransactionExcept

I'm trying to make the Dog/Breed example from the docs work for Neo4j persistence. The database is created normally but data can't be flushed, at least that what it seems. I'm getting the error org.neo4j.graphdb.NotInTransactionException in the…
Avise
  • 91
  • 1
  • 7
0
votes
1 answer

Hibernate-OGM mongodb, can't delete entities - detached

So I am trying to use Hibernate OGM (4.1.0.Beta4) with MongoDB, now I have run into this issue which is confusing me, so I get a list of my entities I created, then I try to cycle through that list and delete each one - however when I try that I get…
qorpus
  • 3
  • 1
0
votes
1 answer

Hibernate OGM with MongoDB persistence exception

I fighing with hibernate. I'm trying to follow hibernate.org/ogm/documentation/getting-started/ . Here are my files - persistence.xml:
Kula
  • 125
  • 3
  • 15
0
votes
1 answer

How to retrieve embedded objects using Hibernate OGM

I have two classes, where one is an entity and the other one is an @Embeddable object: @Entity public class A { @Id ... protected Integer id; @Embedded protected B b; protected String c; } @Embeddable public class B { …
Jochen Ullrich
  • 568
  • 3
  • 22
0
votes
1 answer

How do I use a replica set seed list with Hibernate and MongoDB

I have an application that is written in Java and was written before by someone else before I got control of it. We are using MongoDB with a replica set. I know that in order to use the replica set properly, you need to pass the driver a "seed list"…
vane
  • 2,125
  • 1
  • 21
  • 40
0
votes
1 answer

Fulltext search in Mongodb using Hibernate Ogm

I want to implement Fulltextsearch in MongoDB using Hibernate OGM. I wrote the code, but the code returns me an empty result. I have checked two files, which were produced by lucene with Luke, but it seems that both of them are empty. I don't know…
TangoStar
  • 551
  • 2
  • 8
  • 24
0
votes
1 answer

Error: Could not get constructor for org.hibernate.ogm.persister.OgmEntityPersister

I want to write a veriy simple example with HibernateOGM to populate a collection in MongoDB, but if I run my Programm, I get this exception: Exception in thread "main" org.hibernate.MappingException: Could not get constructor for…
TangoStar
  • 551
  • 2
  • 8
  • 24
0
votes
2 answers

Unable to instantiate specified TransactionFactory class [org.transaction.JDBCTransactionFactory]

I have a problem. I am new in hibernate and I want to write a very simple example with HibernateOGM. I get an Exception that says: Caused by: org.hibernate.HibernateException: Unable to instantiate specified TransactionFactory class…
TangoStar
  • 551
  • 2
  • 8
  • 24
1 2 3
15
16