Questions tagged [neo4j-ogm]

Neo4j OGM is a fast object-graph mapping library for Neo4j, optimised for server-based installations and utilising Cypher via the transactional HTTP endpoint. Neo4j-OGM aims to simplify development with the Neo4j graph database and like JPA, it uses annotations on simple POJO domain objects. Together with metadata, the annotations drive mapping the POJO entities and their fields to nodes, relationships, and properties in the graph database.

Docs: https://neo4j.com/docs/ogm-manual/current/

Source: https://github.com/neo4j/neo4j-ogm

516 questions
9
votes
1 answer

Significant performance difference between neo4j direct access and via OGM

I am evaluating the performance of Neo4j graph database with a simple benchmark for insert, update, delete and query. Using Neo4j OGM I see significantly slower execution times (about 2-4 times) compared to the direct access via Neo4j driver. For…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
7
votes
0 answers

Multiple geometry properties in Neo4j node

First, here is my stack description :  Neo4j 2.3.0 on GrapheneDB + Neo4j Spatial plugin 0.15 Ninja Framework 5.2.1 java server on my PC Neo4j-OGM 1.1.3 for entity mapping Geotools 14.0 for geostuffs ApacheHttp for REST queries I have Unit…
Zofren
  • 1,190
  • 2
  • 11
  • 22
6
votes
1 answer

Depth in custom Cypher queries with OGM always 0?

I'm currently evaluating OGM / Spring Data Neo4j for a use case and came upon the following problem: When executing a custom Cypher query either via Spring Data @Query annotation or directly via the Neo4j Session, the result contains only the nodes…
Tom
  • 3,913
  • 19
  • 28
6
votes
1 answer

org.neo4j.ogm.exception.ServiceNotFoundException: Driver: org.neo4j.ogm.drivers.http.driver.HttpDriver

I am new to Neo4J and trying to connect to Neo4J server through java. My pom entries of a standalone project are as follows: org.neo4j neo4j-ogm-core
Amit Pamecha
  • 119
  • 5
6
votes
1 answer

Is it possible to dynamically construct a neo4j cypher query using the GraphRepository pattern

CONTEXT : I am developing a java Spring Boot system backed by a neo4j database. I access the database using the "ClassRepo extends GraphRepository" structure. Writing queries is a simple case of hard coding in my precise query and replacing a…
Jack Dalton
  • 3,536
  • 5
  • 23
  • 40
6
votes
1 answer

Load an object in Neo4j OGM 1.1.3 ogm depth of 2 very slow

I get a timeout while querying for depth 2 using session.load().I'm working with Neo4j OGM 1.1.3 (Attempting to migrate from Spring Data Neo4j 3.4). Trying to load a Node object class Node { Long id; String name; …
Nachshon Schwartz
  • 15,289
  • 20
  • 59
  • 98
5
votes
2 answers

Neo4j - OGM throws not an Entity in Kotlin

as the tile above, I have been trying to work with neo4j-ogm and kotlin without success. If I try to persit my data, Neo4j throws an exception, "Class xxxx is not a valid Entity". package com.asofttz.micros.administrator.users.testmodels import…
andylamax
  • 1,858
  • 1
  • 14
  • 31
5
votes
3 answers

How to configure Neo4j embedded to run apoc procedures?

I have setup Neo4j using the latest spring 1.5 release, spring-data-neo4j 4.2, with ogm drivers. The configuration is using embedded driver without URI (so impermanent database store) Here is the spring @Configuration bean content: @Bean public…
5
votes
2 answers

How to persist a List as a property of a node?

I am trying to persist a list of objects of a class suppose xyz. when I do this in the NodeEntity Class: @Property List listOfConditions The Node table when loaded from the neo4j-database via the Neo4jOperations.load(entity) method, will…
5
votes
1 answer

Spring Data Neo4j 4 - No Identity Field Found For Class

I am trying to create new Project and make simple class, Master and Pet class. This is my Master Class package com.david.duck.model; import java.util.Set; import org.neo4j.ogm.annotation.*; import…
David Vincent
  • 634
  • 1
  • 8
  • 33
5
votes
2 answers

Error loading recursive relationship by loadAll by ids

Using the new Neo4j 2.3 OGM. When trying to load entities by id I have the following problem: @NodeEntity class Person { Long id; String name; @Relationship(type="Friend", direction = Direction.OUTGOING) public List
Nachshon Schwartz
  • 15,289
  • 20
  • 59
  • 98
5
votes
2 answers

Neo4j OGM example with Scala

I tried the example mentioned in Luanne's article The essence of Spring Data Neo4j 4 in Scala. The code can be found in the neo4j-ogm-scala repository. package neo4j.ogm.scala.domain import org.neo4j.ogm.annotation.GraphId; import…
mmwaikar
  • 655
  • 4
  • 14
4
votes
1 answer

Replace @QueryResult while switching from SDN+OGM to SDN/RX

Using up to Spring Boot 2.3.4, I've been using the @QueryResult annotation to map some custom Cypher queries responses to POJOs. I'm now testing the Spring Boot 2.4 first RC and trying to follow instructions on how to drop OGM since the support has…
Cha
  • 43
  • 4
4
votes
1 answer

Neo4j OGM Unable to process ZonedDateTime field on class my.class.Class. Check the mapping

I am trying to persist a @NodeEntity which has a field of type java.time.ZonedDateTime into my Neo4j database using the Bolt driver, but all I get is this warning message: org.neo4j.ogm.context.EntityGraphMapper : Unable to process AT on class…
4
votes
1 answer

Mapping a tree structure with Neo4J OGM

I am using Neo4J OGM (latest versions) to serialize my data into a Neo4J embedded database. This works with most of my entities, but as soon as i try to save a treelike structure, it takes forever to save and seems to create thousands of such…
Christian Huber
  • 828
  • 1
  • 5
  • 20
1
2 3
34 35