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
0
votes
1 answer

Updating properties of Neo4J Entity using SDN

I am trying to update a Person entity in Neo4J Community edition 3.0.3 using SDN (spring-data-neo4j 4.1.2.RELEASE). I am seeing a kind of behavior while updating an entity. I created a 'Person' entity of the name "person" and saved the same in the…
Soumya
  • 1,833
  • 5
  • 34
  • 45
0
votes
0 answers

Spring Data Neo4j findAll() for depth>1 takes long time

By default findAll() method finds nodes for depth = 1. If I try to find nodes for depth greater than 1. For example findAll(2) it takes long time to compute the result. There are thousands of child nodes at level 2. I need an efficient way to get…
0
votes
2 answers

Spring data with neo4j query

See bellow entities. Person Entity @NodeEntity public class Person { @GraphId Long personId; private String name; private String surname; @Relationship(type = "ATTENDS", direction = Relationship.OUTGOING) private…
Parth Solanki
  • 3,268
  • 2
  • 22
  • 41
0
votes
1 answer

Spring Data neo4j 4 - Getting org.neo4j.ogm.response.model.NodeModel as a result

Is there a way to get org.neo4j.ogm.response.model.NodeModel as results after running a particular query ? Reason for this is I'm having dynamic properties of my node, which cannot be specify in POJO class.While I'm debugging through the SDN 4.1.1…
Lakshitha Herath
  • 628
  • 2
  • 9
  • 18
0
votes
1 answer

org.neo4j.ogm.exception.ResultProcessingException: Could not parse response

I have created a new Maven Project: https://github.com/neosamples/neosamples where I gradually copy content from: https://github.com/luanne/flavorwocky to better understand how it works and which dependencies are needed. For now I would like to just…
u123
  • 15,603
  • 58
  • 186
  • 303
0
votes
0 answers

Implementing bidirectional Rich Relations in Neo4J

I am trying to build the following scenario using Neo4J SDN. There is an entity Person who has a list of Item entities. Each Item entity can have one or more child Items. I wish to have bidirectional relationships between a Person and the list of…
Soumya
  • 1,833
  • 5
  • 34
  • 45
0
votes
2 answers

When save next event, spring data neo4j delete previous relationships

I have a problem with save node in cascade. I have a 3 @NodeEntity: Event, Tag, UserNeo. When I save next event, the previous relationship was deleted between user and events, and also between events and tag. Sometimes this relations are saved. I…
0
votes
1 answer

Spring Data Neo4j 4 and schema indexes for @GraphId

According to official SDN4 documentation - In Spring Data Neo4j 4, index management concerns were removed from the mapping framework entirely. So how about indexes for @GraphId ? Is it also out of scope in SDN4 and indexes for fields annotated with…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Firing Cypher query to know no.of relations

public int getNoOfRelations(long entityId, String relationShipName) { int noOfRelations = 0; Map map = new SeqncMap(); map.put("objectId", entityId); String query = "MATCH (object1)-[r:" +…
madireddy
  • 107
  • 3
  • 13
0
votes
0 answers

Spring Data Neo4j 4.2.0 and pagination

Previously with SDN 3.x I have used following query: @Query(value = "START d=node:node_auto_index({autoIndexQuery}) MATCH (d:Decision) RETURN d") Page searchDecisions(@Param("autoIndexQuery") String autoIndexQuery, Pageable page); Right…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Spring Data Neo4j returns node with empty child nodes

I have a following Spring Data Neo4j 4.2.0.BUILD-SNAPSHOT entities: @NodeEntity public class VoteGroup extends BaseEntity { private static final String VOTED_ON = "VOTED_ON"; private final static String VOTED_FOR = "VOTED_FOR"; …
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

Relating nodes of the same type with SDN

I am using Spring Data Neo4j 4 . Lets say I have nodes of type Person and the corresponding Java domain object is @NodeEntity public class Person { @GraphId private Long id; private String name; private String lastName; …
Manu Bhat
  • 135
  • 2
  • 8
0
votes
2 answers

neo4j java node dynamic properties

I am trying to create nodes of a specific type with properties which can be dynamic . For Example : I can create a Person node with name,age,address properties. But these need not be the only properties when I create another Person node. This node…
Manu Bhat
  • 135
  • 2
  • 8
0
votes
1 answer

SDN 4 query by property list with depth 1

I need a Spring Data Neo4J repository method which takes as input a list of names and returns all nodes with a specific label which have one of those names, with depth 1. For example: Set findAllByName(Set names) should return a Set…
0
votes
1 answer

neo4j Error connecting to remote graph over HTTP

Currently trying to insert 1.9M records with 8 concurrent threads to local neo4j database, while inserting few hundreds went fine, then I get this exception, though the process is still running, but after going through 1.9M records, only 600k is…
kenlz
  • 461
  • 7
  • 22