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

SDN4 or neo4j-ogm performances issue

I wrote some simple java code and I encountered some bad performances with SDN4 that I didn't have with SDN3. I suspect the find repositories methods depth parameter to not work exactly in the way it should be. Let me explain the problem: Here are…
clement
  • 489
  • 1
  • 5
  • 18
0
votes
1 answer

SDN4 is always returning one relationship even though neo4j has multiple relationships

I have two entities Person and Building. Both are related by two relationship entities "PERSON_HAS_ACCESS"(mutiple persons can access multiple buildings) and "PERSON_OWNS" (one Building can be owned by only one person, but a person can own multiple…
Gaurav Abbi
  • 645
  • 9
  • 23
0
votes
0 answers

neo4j-2.2.5.pom cannot be read of is not a valid zip file error

After I updated spring-data-neo4j to latest version: 4.0.0.RELEASE, I am getting the java build path error as…
Anshul Goel
  • 169
  • 1
  • 5
  • 16
0
votes
1 answer

SDN4 - Neo4j OGM and JsonSubType Annotation

I have followed the SDN4 migration path from SDN3 and have encountered the same issue documented here: SDN4 - Neo4j OGM - Jackson 2 A patch is referenced in the answer and mentions that it will applied to neo4j-ogm 1.1.1. I have since tried…
Matthew Shaw
  • 108
  • 1
  • 7
0
votes
1 answer

Spring OGM- modelling Entities

I have this scenario where one visitor creates a Pending-Visit-Request to a Resident. Then based upon the reply provided by the Resident, the visit is either approved or rejected. But before creating a new request, there's also a possibility that…
Sagar
  • 229
  • 4
  • 14
0
votes
1 answer

NPE is thrown when sending concurrent requests to persist entities and relationships in Spring Data Neo4j 4

I am persisting a Node entity that contains relationships to few other entities. This persist works fine when I am doing it one at a time, however if I run this concurrently, I get NPE at …
Gaurav Abbi
  • 645
  • 9
  • 23
0
votes
3 answers

How to fix issue of Spring data neo4j 4 deleting previous relationships when adding new ones?

I am using SDN4 and facing the issue of previous relationships getting deleted on adding new different ones. Here is my scenario, Step 1 Create a node with some relationships using Relationship entities. save the relationship entity. Step 2 get the…
Gaurav Abbi
  • 645
  • 9
  • 23
0
votes
0 answers

spock tests using spring data neo4j 4.0.0.RELEASE failing

I have a spring boot application which leverages spring data neo4j. I am using the following dependencies in my project. neo4j 2.2.5 neo4j ogm 1.1.2 spring data neo4j 4.0.0.RELASE spock-spring 1.0-groovy-2.3. When i try to run a sample spock…
arun menon
  • 1
  • 1
  • 2
0
votes
1 answer

SDN4: Tests failing with latest snapshot

I'm getting the following exception with tests: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryBean]: No default constructor found; nested…
user1838830
  • 131
  • 1
  • 6
0
votes
0 answers

Spring Data Neo4j Repository.save works incorrectly if it performs update

I tried to perform following actions via repository (SDN 4.0.0.RC2): I save entity with an property with null value I save entity again (i.e update it), but now property has a value In this case updating is not performed. Value still is null. Is…
0
votes
1 answer

Relationship issue on neo4j.ogm using spring boot application

In my project i am using org.neo4j.ogm with spring boot. While i am trying to create a relationship using @RelationshipEntity means it will created successfully. But it does not support multiple to one relation. Here i am creating relationship for…
0
votes
1 answer

SDN4 custom query pagination alternative for Page contents

Currently Pagination isn't supported in SDN4 (Ref: Paging and sorting in Spring Data Neo4j 4) It's possible to specify the SKIP and LIMIT clauses ourselves to retrieve parts of the results, however for our system we also need the getTotalPages(),…
Coder Shark
  • 437
  • 2
  • 5
  • 13
0
votes
1 answer

MappingException thrown for Long field in Spring Data Neo4j

Using SDN 4.0.0.RC1 I have a simple NodeEntity class which saves fine but I cannot retrieve it. It looks like the siteId field is being interpreted as an Integer when retrieved from Neo4J import org.neo4j.ogm.annotation.Index; import…
Robin Elvin
  • 1,207
  • 12
  • 28
0
votes
1 answer

SDN4: ClassCastException: java.util.HashMap cannot be cast to [EntityNode]

An issue has appeared for our code after updating to SDN4: java.lang.ClassCastException: java.util.HashMap cannot be cast to com.example.server.model.neo4j.node.Item at …
Coder Shark
  • 437
  • 2
  • 5
  • 13
0
votes
0 answers

SDN4 issue: org.neo4j.ogm.session.Session.resolveGraphIdFor(Ljava/lang/Object;)Ljava/lang/Long

An issue has appeared over the last few days when running code using the latest SDN4 snapshot build. I get the java.lang.NoSuchMethodError: org.neo4j.ogm.session.Session.resolveGraphIdFor(Ljava/lang/Object;)Ljava/lang/Long; This is occurring for a…
Coder Shark
  • 437
  • 2
  • 5
  • 13