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.
Questions tagged [neo4j-ogm]
516 questions
0
votes
1 answer
Annotate inherited class fields
I'm working with Spring Data Neo4j and want to persist an user into the Neo4j DB.
The user (Neo4jUser) extends an user from a generic project that is independent from the Neo4j implementation.
Since every user should have a id, username and email,…

Urr4
- 611
- 9
- 26
0
votes
1 answer
how to enable remote shell with embedded db on SDN4?
Hi I'm using the following configuration
driver=org.neo4j.ogm.drivers.embedded.driver.EmbeddedDriver
URI=file:///data/graph
in ogm.properties file
how can i enable remote shell with it?
thanks

Loki
- 659
- 1
- 8
- 18
0
votes
1 answer
Overriding hashCode() method does not allow saving of class properties in Neo4J
I am trying to persist the following class in a Neo4J database using spring-data-neo4j version 4.0.0.RELEASE. It is a class named 'GroupCategory' with some fields like name, ownerId etc. It has overwritten the equals and hashcode methods as provided…

Soumya
- 1,833
- 5
- 34
- 45
0
votes
1 answer
Neo4j - Parent - Child heirarchy + Spring
We have a structure where a Parent can have multiple child with nested structure.
1: Parent p1
child c1
c1.1
c1.2
child c2
c2.1
c2.3
Now using one cypher query , I need to get the whole…

user2945318
- 59
- 6
0
votes
1 answer
Neo4j 2.2.5 - Dijkstra shortest path
I'm using Neo4J 2.2.5 with Spring Data and I want to calculate the shortest path between 2 nodes using Dijkstra.
This is my code :
PathFinder finder = GraphAlgoFactory
…

Johan Kumps
- 31
- 2
0
votes
1 answer
MappingException with root cause NullpointerException
Context
I have a neo4j 2.3.X running on localhost, connected to an API using:
Neo4j-OGM
Spring boot
Spring security
Spring hateoas
Spring logging
All of this running on a java-8-oracle JVM
I tested this on windows and linux, same issue.
Problem…

Supamiu
- 8,501
- 7
- 42
- 76
0
votes
2 answers
neo4j-ogm 2.0.0-M02 not persisting nested object from Scala
Using neo4j 2.3.2 with neo4j-ogm 2.0.0-M2 with Scala 2.11.7 on JDK 1.7
From build.sbt
val neo4jOgmVersion = "2.0.0-M02"
libraryDependencies += "org.neo4j" % "neo4j-ogm-api" % neo4jOgmVersion
libraryDependencies += "org.neo4j" % "neo4j-ogm-core" %…

Pram
- 2,261
- 3
- 31
- 50
0
votes
0 answers
SDN 4 missing relationships in the graph
When I store my Neo4j nodes to the Neo4j graph, only nodes are stored (no relationships). Does anyone can point me to right direction what i am missing there?
here are my nodes
@NodeEntity public class Game extends AbstractEntity{
public Long …

Waldemar
- 48
- 10
0
votes
1 answer
Neo4j OGM how to delete relationship
I have two neo4j-OGM node entities connected with property-less relationship like so:
@NodeEntity
public class User {
@Relationship(type = RelationshipNames.USER_DEVICES, direction = Relationship.UNDIRECTED)
private Set…

Aviv Carmi
- 907
- 8
- 21
0
votes
0 answers
How load the related entities or relationshipentities using session.load in Java
Using neo4j-ogm, I writed the followed code:
The Configuration:
@Configuration
@EnableNeo4jRepositories(basePackages="com.neo4j.demo.repositories")
@EnableTransactionManagement
@ComponentScan("com.neo4j.demo")
public class Neo4jApplication extends…

superapc
- 1
- 1
0
votes
1 answer
Neo4j OGM 2.0 query path
I am trying to perform a query which returns a path, however, although the same query executed in neo4j Web UI returns a correct result, the neo4j-ogm returns null. I have installed neo4j-ogm-api,core:2.0.0-M01 from Maven.
My java code looks as…

Vahagn
- 386
- 2
- 21
0
votes
1 answer
SpringDataNeo4j-4 derived finders with custom queries
I am currently using SpringDataNeo4j–4.1.0-BUILD-SNAPSHOT. I access the database using the “extends GraphRepository" structure and the Neo4jTemplate. Among other things I am using simple derived finder queries like:
Event findById (Long id)
This…

fkorn
- 50
- 6
0
votes
0 answers
Spring Data Neo4j 4 doesn't recognize domain objects housed in a jar file
I wasted a day on this, but it appears that Spring Data Neo4j 4 will not load domain objects from a jar file. I had a simple war container and within it I had a jar file containing all my domain objects. I kept getting class cast exceptions and…

Pudge
- 98
- 1
- 6
0
votes
1 answer
cypher query is not returning the results when trying to use @QueryResult to map to POJO
I'm running a cypher query using
org.neo4j.ogm.session.Session#query(java.lang.Class, java.lang.String, java.util.Map)
The Class is a POJO which I have annotated using @QueryResult
@QueryResult
public class…

Gaurav Abbi
- 645
- 9
- 23
0
votes
1 answer
Repository save() is not working
I am currently playing around with spring-data-neo4j and have a really weird behaviour around persisting data.
I read the Getting Started guide and looked through the Good Relationships: The Spring Data Neo4j Guide Book. Loading existing nodes…

incredibleholg
- 583
- 1
- 7
- 19