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

Spring Data Neo4j 4.x and sdn-university: Neo4jTemplate no autowire'ing

I am upgrading our application, which is modelled closely after sdn-university, from Spring Data Neo4j 3.x to Spring Data Neo4j 4.0.0.BUILD-SNAPSHOT. When adding an autowire'd instance of Neo4jTemplate, the following exception is thrown upon…
Eric Spiegelberg
  • 602
  • 1
  • 8
  • 14
2
votes
1 answer

The @QueryResult doesn't work

I'm using Spring Data Neo4j 4 (SDN4),And trying to return more than one entities using the @QueryResult There is no exception thrown,but everything is null in the @QueryResult object The model is simple as (:User)-[:ROLE]-(:Role) Does any one know…
minglight
  • 87
  • 6
2
votes
1 answer

How to get Neo4jTemplate in SDN4

I am using Spring Data Neo4j 4(SDN4) from the example project SDN4-northwind(https://github.com/amorgner/sdn4-northwind),when I try to get the Neo4jTemplate bean,I get the error message like this. Does anyone know how to get the Neo4jTemplate bean…
minglight
  • 87
  • 6
2
votes
1 answer

Clear Neo4j Embedded database

With a new version of Spring Data Neo4j I can't use Neo4jHelper.cleanDb(db); So, what is the most effective way to completly clear Embedded Neo4j database in my application? I have implemented my own util method for this purpose, but this method is…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
2
votes
2 answers

SDN4: Recent snapshot build broken

Just started getting the following exception while starting the server: Error creating bean with name 'myRepository': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError:…
user1838830
  • 131
  • 1
  • 6
2
votes
1 answer

SDN4 : How to define the depth for a query derived from finder-method names?

I have defined a repository as follows: public interface ServiceRepository extends GraphRepository { List findByName(String name); } Calling findByName on the repository works such that it does indeed return a list of Service…
GavinM
  • 80
  • 6
2
votes
0 answers

SDN 4 : How to cause SDN 4 to use MERGE rather than CREATE

Prior to migrating my project to SDN 4, I used my own custom REST client code which generated Cypher statements of the form: MERGE (n:LABEL1:LABEL2 {prop1:"val"...}) ON CREATE SET ... ON MATCH SET ... This had the desired effect of creating nodes…
GavinM
  • 80
  • 6
2
votes
0 answers

spring data neo4j 4 performance testing issue

I am trying to add a Neo4j Node repeatedly with 2 concurrent threads and getting the 404 not found issue highlighted below repeatedly. Not sure if it is a bug or I am doing something wrong 00:45:18.672 [Thread-1] INFO …
Sahil Sharma
  • 131
  • 1
  • 3
2
votes
1 answer

SDN 4 Gradle Setup

I'm trying to get SDN 4 working with Gradle and Groovy and having checked other posts on here I got it working the other night but I guess something has changed over the last couple of days. When I try and run the tests it fails because of…
Ric
  • 33
  • 5
2
votes
2 answers

SDN 4 - Neo4jOperation.convert() deprecated

With SDN 3 it was possible to use Neo4jOperations.convert(Object value, Class type) to convert results from a cypher query which returns Iterable> to a Neo4j domain class (annotated with @NodeEntity). For…
user1838830
  • 131
  • 1
  • 6
2
votes
1 answer

Spring-Data-Neo4J :: How do I save an array or enums in a relationship?

In my @RelationshipEntity below, you can see I have a Set rights (set of rights). Right is an Emum. Neo4J would only allow me to save a set of String's so I nade a custom converter. @RelationshipEntity (type="LOGIN") public class Login { …
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
2
votes
1 answer

Neo4j & Spring Data Neo4j 4.0.0 : Importing large datasets

I want to insert real-time logging data into Neo4j 2.2.1 through Spring Data Neo4j 4.0.0. The logging data is very big which may reach hundreds of thousands records. How is the best way to implement this kind of functionality? Is it safe to just…
Peter Sie
  • 175
  • 11
2
votes
2 answers

Neo4j TimeTree REST API Previous and Next Navigation

I am currently using Neo4j TimeTree REST API and is there any way to navigate to the time before and after a given timestamp? My resolution is Second and I just realize that if the minute has changed, then there is no 'NEXT' relationship bridging…
2
votes
1 answer

Spring-Data-Neo4J: How do log into the remote server?

I'm using Spring-Data-Neo4j 4.0.0.M1, and trying to connect to the server. I'm getting an exception: Caused by: org.apache.http.client.HttpResponseException: Unauthorized I have a password on the server interface, but I'm not sure how to tell Spring…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
1
vote
1 answer

Sorting neo4j by relationship if relationship exist

I am currently developing a social app that requires to filter user by keyword. I am using neo4j database. I already have the feature but having a problem to filter by relationship first. For example, user A follows user F. The search result should…