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

spring-boot upgrade from 1.3.2 to 1.3.3: logback issue

We've hit an issue when upgrading from spring-boot 1.3.2 to the recently released 1.3.3. Our application has been making use of the following dependencies, each the latest, without issue: 2.3.2
13
votes
2 answers

Neo4j: Cypher query on property array

I have a domain class which has a property by name "alias" which is an arraylist of strings like below: private List alias; alias contains the following values: {"John Doe","Alex Smith","Greg Walsh"} I'd like to be able to make a query…
codebin
  • 285
  • 1
  • 4
  • 12
10
votes
3 answers

Paging and sorting in Spring Data Neo4j 4

is there pagination support for custom queries in SDN4? If yes, how does it work? If no, is there a workarround? I have the following Spring Data Neo4j 4 repository: @Repository public interface TopicRepository extends…
ShrimpPhaser
  • 3,257
  • 1
  • 23
  • 22
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
6
votes
2 answers

How to control depth on custom Spring Data Neo4j repository methods?

For example, if I want to get list of users by name: class UserRepository extands GraphRepository { List findByName(String name); } then how to set loading depth to 2? I tried to find answer in the SDN 4.0.0.RC2 docs, but it isn't…
5
votes
0 answers

Neo4j enterprise cluster master not fully utilizing CPU

We have a Neo4j v3.0.4 Enterprise cluster running on a machine in AWS with 16 cores and when we issue a lot of requests to it, it seems to only utilize at most ~40% of the CPU (when looking on the box using htop it only seems to utilize 6 cores?).…
simonl
  • 1,240
  • 7
  • 19
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
2 answers

Spring Data Neo4J - Create new node with a relationship with an existing node

I need to create a new node of the class A, which has a relationship with the User node: @NodeEntity public class A implements Serializable { /** * Graph node identifier */ @GraphId private Long nodeId; /** * Enity…
Xavi Torrens
  • 337
  • 1
  • 12
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
1 answer

Add relation to another node in SDN4 + REST

I have built a simple SDN4 + REST API: One endpoint, named player, which contains a set of properties. Each player has a Set friends property. GET, POST, PUT, DELETE and PATCH are working like charm on /player/{id} The problem here is…
Supamiu
  • 8,501
  • 7
  • 42
  • 76
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
4
votes
2 answers

Neo4j Spring Data Neo4j 4 cascade delete

In my Neo4j/SDN4 project I have a complex hierarchy of node entitles with a many linked object of a different types. I'm working on Like/Dislike functionality and every node in my system can have associated list of Like objects. Right now I'm…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
4
votes
4 answers

Neo4j SDN 4 emulate sequence object(not UUID)

Is it possible in Neo4j or SDN4 to create/emulate something similar to a PostgreSQL sequence database object? I need this thread safe functionality in order to be able to ask it for next, unique Long value. I'm going to use this value as a surrogate…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
4
votes
1 answer

Neo4j RelationshipEntities and cyclic JSON serialization issue with Spring Data Rest

I'm having an issue with serializing @RelationshipEntities to JSON via Spring Data Rest. Whenever I create the @RelationshipEntity, I run into an infinite recursion on serializing the graph to JSON. Using JSOG to try to render the graph only…
1
2 3
34 35