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

execute method in org.neo4j.ogm.session.Session is not defined (Spring Neo4j SDN 4 M1

Getting the following exception when I try to execute the query to create a relationship between nodes java.lang.NoSuchMethodError: org.neo4j.ogm.session.Session.execute(Ljava/lang/String;)V at …
milan garg
  • 21
  • 6
0
votes
1 answer

SDN4 - What are recommended strategies for doing auditing?

I am using Spring Data Neo4j 4.0.0.RC1 to build a CRUD application and am interested in auditing EACH and EVERY operation performed on my nodes and relationships, e.g. CRUD. What are some general strategies for accomplishing this? I am aware of the…
simonl
  • 1,240
  • 7
  • 19
0
votes
1 answer

SDN4 - Error mapping GraphModel to instance

In my web app I am storing and authenticating users against a Neo4j server. In my flow if I register with the app (thus saving a user instance) and then proceed to the login page I can log in fine. If I stop the server and start it again I cannot…
Robin Elvin
  • 1,207
  • 12
  • 28
0
votes
1 answer

Group toghether Node properties and return as a view in Cypher

I am working with v2.2.3 of Neo4J and Spring Neo4j Data SDN 4 I want to return a few properties of a node using a cypher query and map them into attributes of a POJO.My function in Spring data repository looks something like this…
milan garg
  • 21
  • 6
0
votes
1 answer

Spring Data Neo4j repository Invocation of init method failed

I have a Spring Data Neo4j project which is going to be a data access object consumed by Spring MVC. I simply wish to have the unit tests run against an in-memory database whilst in production it must connect to a remote server. Apparently,…
Robin Elvin
  • 1,207
  • 12
  • 28
0
votes
1 answer

Spring Data Neo4J 4 - Order By in GraphRepository don't work

To work with a neo4j-graphdatabase standalone server i add the dependency of Spring Data Neo4j 4.0.0.M1 to my pom. org.springframework.data spring-data-neo4j
mzober
  • 91
  • 7
0
votes
1 answer

SDN4 - GraphRepository findOne vs findById

I am using Spring Data Neo4j 4.0.0.RC1 and am noticing some interesting behavior with GraphRepository's findOne method. Given two GraphRepository extensions: public interface SimpleNodeRepository extends GraphRepository { } public…
simonl
  • 1,240
  • 7
  • 19
0
votes
1 answer

SDN4 : How to add multiple custom labels to a NodeEntity

Prior to using SDN 4, I used custom REST client code to implement my own DAO layer between client & Neo4j db. I was able to add a number of labels to nodes I created. This also appears to have been possible using SDN 3 from what I can deduce from…
GavinM
  • 80
  • 6
0
votes
1 answer

SDN 4 doesn't create relationship with properties

I am new to Neo4J. I have built a project that uses spring-data-neo4j (4.0.0.BUILD-SNAPSHOT - version), spring-boot (1.2.3.RELEASE - version) and succeeded to create node entities, add properties to node entities and add relationships. It works…
Aditya
  • 3
  • 3
0
votes
0 answers

SDN 4.0.0.M1 extension configuration

I did a POC using SDN 3.3.0 sometime back. Currently, I'm trying to do a POC on SDN 4.0.0.M1. I was able to create a running project in which repositories querying the DB exist on the application side. But it's performance isn't that great. I'm…
Rahul
  • 637
  • 5
  • 16
0
votes
1 answer

Spring Data neo4j JUnit4 setup

I confess I am a total newbie at the Java way of doing things and I am totally lost trying to get a simple unit test running. I am building a data access library and want to unit test it. I am using Spring Data Neo4j 4.0.0.BUILD-SNAPSHOT because I…
Robin Elvin
  • 1,207
  • 12
  • 28
0
votes
2 answers

Spring Data Neo4j 4.0.0 : StackOverFlowError

I am using the Spring Data Neo4j 4.0.0 with Neo4j 2.2.1 and I am trying to import a timetree-like object with 2 levels under the root. The saved object is built and saved at the end and at some point of the saving process, I got this StackOverFlow…
0
votes
1 answer

Spring Data Neo4j: Complex relationships not persisting

When adding multiple relationships between nodes simultaneously, only some of them are created. In the example below, the calls to makeUser(...) are only populating some of the relationships. Main @Transactional void clearDatabase() { …
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
0
votes
3 answers

SDN4 - ResultProcessingException: Failed to execute request

I am using Neo4j 2.2.1 and Spring Data Neo4j 4.0.0 and I am trying to import a timetree-like graph (with next, first, last, and child relationships), but with only 2 levels. I save at the root object and I got the following exception (due to the…
Peter Sie
  • 175
  • 11
0
votes
1 answer

Spring Data Neo4J findByName(String name) in interface returns incorrect results

I'm using 4.0.0.M1 Organisation microsoft = organisations.findByName("Microsoft"); if (microsoft == null) { microsoft = new Organisation("Microsoft"); organisations.save(microsoft); } Organisation apple =…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
1 2 3
34
35