Questions tagged [spring-data-neo4j-4]

The Spring Data Neo4j project, as part of the Spring Data initiative, aims to simplify development with the Neo4j graph database. 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.

For version 4, Spring Data Neo4j has been rewritten from scratch to natively support Neo4j deployments in standalone server mode. It uses Cypher, the Neo4j query language, and the HTTP protocol to communicate with the database.

The guide for Spring Data Neo4j 4 is available at http://docs.spring.io/spring-data/neo4j/docs/4.0.0.M1/reference/html/

517 questions
2
votes
1 answer

need to find shortest path between two nodes based on one of the node's property value -USING JAVA and 3.0.1 neo4j version

Assume My Graph is having the below paths (3)<--[IS_LOCATED_AT,9]--(8)--[CARRIES,77]-->(53)<--[CARRIES,76]--(7)--[IS_LOCATED_AT,8]-->(2) (3)<--[IS_LOCATED_AT,9]--(8)--[BELONGS_TO,7]-->(1)<--[BELONGS_TO,6]--(7)--[IS_LOCATED_AT,8]-->(2) …
raj
  • 107
  • 2
  • 11
2
votes
1 answer

Neo4j: GC Monitor: Application threads blocked for

I have a Vertex node entity which has a List of relationships. @NodeEntity (label="User") public class Vertex { private Long id; private String name; @Index(unique=true) private String email; @Relationship(type="WORKS_WITH",…
Roxana Roman
  • 1,012
  • 1
  • 8
  • 17
2
votes
1 answer

Spring-data-neo4j-4 How to specify more than one label in @NodeEntity annotation

I need more than one Label for my entities . Is there a way to specify it in annotation or any other way to do it?
Yuriy Dubyna
  • 82
  • 1
  • 6
2
votes
1 answer

Neo4j 3.0.1 SDN 4.1.1.RELEASE phantom nodes

In my Neo4j 3.0.1 and SDN 4.1.1.RELEASE project I have a following entities: @NodeEntity public class CriterionGroup extends Authorable { private final static String DEFINED_BY = "DEFINED_BY"; private final static String CONTAINS =…
brunoid
  • 2,121
  • 2
  • 12
  • 22
2
votes
1 answer

Eager or lazy load in Spring data neo4j 4

I'm trying to use spring data neo4j in my project here's a simple entity: @NodeEntity public class Actor{ @GraphId private Long id; @Property(name="name") private String fullName; @Relationship(type="ACTED_IN",…
2
votes
0 answers

Neo4j + Hibernate + Spring Security HttpDriver.autoCommitUrl Null Pointer Exception

I am getting null pointer exception. While calling findAll method of GraphRepository. After debugging autoCommitUrl method I got that The method didn't get URL, Driver class name and credentials from driverConfig object, Although I have already…
2
votes
0 answers

Maven dependency issue for upgrading Neo4j from 2.2.3 to 2.3.3

I have a spring boot application which has rest call to the neo4j. I am using following maven dependency - org.springframework.data spring-data-neo4j-rest
RCS
  • 1,370
  • 11
  • 27
2
votes
2 answers

GraphQueryLookupStrategy.resolveQuery exception on migration from SDN 4.0 to SDN 4.1.RC1

I am in the process of migrating my application to use SDN 4.1.0.RC1 but have encountered a few issues after trying to boot the application. I have made the necessary configuration changes to correctly use the HTTPDriver to my remote server…
2
votes
2 answers

How can I use GraphRepositories to return complex POJO's with a specified depth (currently using Neo4j templating)

CONTEXT: I am working on a java spring web application backed by a Neo4j database. I have an object "Student" that has taken a number of "Modules" and "Courses". The relationship is connected via "rich relationship" nodes "RR_TakenModule" and…
Jack Dalton
  • 3,536
  • 5
  • 23
  • 40
2
votes
2 answers

Data is not saved when using remotely Neo4j Server with Spring Data Neo4j

I have created a Maven project using spring-data-neo4j. I have also installed the standalone Neo4j Server Community Edition 2.3.3. I am trying to save some Vertex objects to the database and then simply retrieve them to check everything works fine.…
Roxana Roman
  • 1,012
  • 1
  • 8
  • 17
2
votes
1 answer

How to save and retrieve nested objects in neo4j using spring data

I have a model where User will have a list of Roles and Role has a list of Permissions. However, even when i save all of them at once - with depth -1 I am unable to retrieve the child nodes from the parent nodes. ex: user.getRoles() - 2…
Swetha V
  • 300
  • 5
  • 16
2
votes
1 answer

how to get the relationship from Collection of relationships between two nodes using springdata Neo4j with GraphRepository

I have two entities like Users and Accounts. User node related to Account node with any of the 20 relationships. Please find the sample image design attached i need to search accounts for corresponding users using any of the 20 relationships. i…
kris
  • 23
  • 4
2
votes
0 answers

Spring Data Rest - Neo4j - Can't PUT new Relation that has @StartNode and @EndNode

I have the following domain models: Route entity: package org.gmjm.logistics.domain; import org.neo4j.ogm.annotation.EndNode; import org.neo4j.ogm.annotation.GraphId; import org.neo4j.ogm.annotation.RelationshipEntity; import…
aglassman
  • 2,643
  • 1
  • 17
  • 30
2
votes
1 answer

Spring Data Neo4j 4returning cached results?

I'm not sure if this is a Neo4j question or a Spring Data question. I'm fairly new to Neo4j, so I just want to make sure I'm doing things right. I'm using spring-data-neo4j:4.0.0.RELEASE with a neo4j-community-2.3.1 DB instance. The situation is…
Ric P.
  • 23
  • 4
2
votes
2 answers

Spring Data Neo4j 4 - @Fetch change to findAll(int depth) always return null

I have 3 classes, there are User, Role and UserRole. I want to fetch the data of UserRole, but always return NULL. This is User Class. @NodeEntity public class User { @GraphId Long id; @NotNull private String username; …
David Vincent
  • 634
  • 1
  • 8
  • 33