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

How to index list of strings in hibernate search

How to index list of strings in Hibernate search? i tried like this @Field(index = Index.YES, analyze = Analyze.NO, store = Store.YES, analyzer = @Analyzer(definition = "customanalyzer_query")) @ElementCollection(fetch = FetchType.EAGER) private…
1
vote
0 answers

JPQL - Query manytomany association (mongodb + jpa + hibernate)

I'm using mongodb, jpa and hibernate ogm and I have problems with a query. I have two entities: User and Entitlement, with a unidirectional ManyToMany association between them, so an Entitlement contains a list of User. I'm trying to get all…
1
vote
1 answer

Setting up Play Framework 2.5.x with Hibernate OGM Neo4j

I am trying to setup Hibernate OGM to work with Play Framework 2.5.x(17) in my case but I keep getting "Cannot connect to database [default]" error. Apparantly Play takes MySQL driver as default and I am not able to find a driver configuration…
Vikram
  • 368
  • 3
  • 12
1
vote
0 answers

How to avoid object wrapper inside object in jackson

I was new to the spring restful with Jackson and Hibernate OGM. I'm getting JSON format as below from web request "Order": { "Orderdata": [ {"orderNo" : "1","location":"A"},{"orderNo" : "2","location":"B"},..] } Pojo class for order class Order…
Viswa
  • 45
  • 1
  • 2
  • 9
1
vote
2 answers

Hibernate Neo4j retrieve result in a key-value form

I would like to retrieve entity properties in a format like this: property_name: value. I am trying to get the result this way: public void retrievePerson(){ EntityManagerFactory emf = Persistence.createEntityManagerFactory("persistence"); …
Porjaz
  • 771
  • 1
  • 8
  • 28
1
vote
0 answers

Hibernate and Hbase integration

I need to use Hibernate with an HBase Database. I saw Hibernate OGM but my question is : is Hibernate OGM 5.1 compatible with HBase? Thanks
Giurock
  • 11
  • 2
1
vote
1 answer

JPA + Hibernate OGM + Lazy Initialization with Jackson Datatype Hibernate

I want to choose when to load Set with Lazy This is my entity Product @Entity public class Product { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Type(type = "objectid") private String id; private String name; …
Pako
  • 339
  • 2
  • 8
  • 20
1
vote
2 answers

How to use generic type parameter with Hibernate 5?

Below are the class definition interface public interface myInterface{ void myMethod1(); } MyClass1 Class which implements above interface @Entity public class MyClass1 implements MyInterface{ @Id private int id; private String…
Karthik Prasad
  • 9,662
  • 10
  • 64
  • 112
1
vote
1 answer
1
vote
2 answers

NoSuchMethodError AttributePath.isPartOfCollectionElement() - Hibernate

I am trying to upgrade to OGM 5.1.0.Final and I am using Spring as well. The pom is listed below -
Rajesh
  • 419
  • 1
  • 6
  • 20
1
vote
1 answer

UnexpectedUpgradingStoreVersionException - "Expected 'v0.A.3' but file is version " with Neo4j Server and Hibernate OGM

I am trying my hand on Neo4j + Hibernate OGM. I started with this tutorial. Starting from there I am now able to create and update entities, and also run some custom queries using JP-QL queries: 1, 2. Using Neo4j Community Edition 3.1.0 for Windows…
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
1
vote
1 answer

querying mongodb hibernate ogm return always null

i want to query a mongodb here my code Persistence.xml
Med Besbes
  • 2,001
  • 6
  • 25
  • 38
1
vote
1 answer

Persist a tree with Hibernate OGM and MongoDB, the collections that represent the tree are incorrect

My goal is to persist a tree on a store MongoDB using Hibernate OGM (4.1.1 Final) with JPA annotations. I wrote two classes called Node and NodeLink: the first defines the nodes while the second the links between them. the Node class: @Entity public…
1
vote
1 answer

Inheritance in Hibernate OGM

How you can handle the inheritance mechanism in Hibernate OGM, in particular using MongoDB? In "Hibernate OGM Reference" I read that the inheritance mechanism is not supported by OGM. So there is a way to avoid the problem? Thanks
1
vote
1 answer

Hibernate OGM: Having trouble starting MongoDB database

So I'm pretty new to MongoDB as well as Hibernate and I'm trying to run a test to connect and add documents to a MongoDB database. The code ran on another machine so it should work, but I'm assuming I might have a error with MongoDB. The error…