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

Neo4j 3.0.1 and SDN 4.1.1.RELEASE path finding

I have two Decision node - parent and child. I have implemented following method that returns path between these nodes. @Query("MATCH path=(d:Decision)<-[:CONTAINS*]-(ancestorD:Decision) WHERE id(d) = {decisionId} AND id(ancestorD) =…
brunoid
  • 2,121
  • 2
  • 12
  • 22
0
votes
1 answer

Neo4j 3.0.1 Caused by: java.lang.ClassNotFoundException: org.neo4j.ogm.result.ResultAdapter

I'm trying to move my project from SDN Neo4j 3 to SDN Neo4j 4 and to Neo4j 3.0.1. Right now I'm fails with a following exception: java.lang.NoClassDefFoundError: org/neo4j/ogm/result/ResultAdapter at…
brunoid
  • 2,121
  • 2
  • 12
  • 22
0
votes
1 answer

Spring Session store user credential only

I am currently Spring MVC 4 with Spring Data Neo4j/MongoDB/JPA. Everything works find until I need to use Spring Session Data Redis to share sessions between servers. The problem is that Spring Session intercept all the HttpSession and store them in…
Steven Luo
  • 2,350
  • 3
  • 18
  • 35
0
votes
1 answer

Duplicate relations in neo4j with spring data

I am using Neo4j 3.0.0 with spring-data-neo4j (Version 4.1.1.RELEASE) and the neo4j-ogm-bolt-driver. I want to create the same relationship (same type) between two nodes multiple times. Persisting the @RelationshipEntity multiple times via a…
K.E.
  • 818
  • 2
  • 12
  • 28
0
votes
1 answer

Is there a way to use PathFinder from GraphAlgoFactory with spring-data

I took a look at movies-java-spring-data-neo4j-4 and I love it, but I want to use PathFinder from GraphAlgoFactory with spring-data 4.1.1.RELEASE. I want to create some sort of Roadmap in my db and use the RestController to find a path between two…
0
votes
2 answers

Invocation of init method failed when I add a query in a repository

I'm trying the spring-data-neo4j in a project. I defined my domain object but I've got problems with the repository usage. Below the code of my repository interface: public interface UserRepository extends GraphRepository { public User…
ChriX
  • 951
  • 4
  • 9
  • 22
0
votes
2 answers

Spring-data-neo4j v4, why no index

According to the migration of SDN (Spring-data-neo4j) v3 to SDN4, Indexes are not present anymore, so this is not foreseen to work anymore. @NodeEntity public class User extends Unversioned{ @Indexed(unique=true,failOnDuplicate = true) // <--…
Qualaelay
  • 713
  • 2
  • 10
  • 21
0
votes
0 answers

Neo4j-spring-data(4.1.1) self relationship (parent-child) is duplicated

I am using spring-data-4.1.1 & Neo4j 2.3.2 with ogm annotations Below is my entity @NodeEntity(label = "Component") public class Component extends BaseEntity { ......... @Relationship(type = Relation.LINK_TO) private…
pmehra
  • 11
  • 3
0
votes
2 answers

Node identifiers in Spring data Neo4j

I have a node object that looks like this: @NodeEntity public class Title { private Long id; private String name; public void setName(String name){ this.name=name; } } The name is the natural identifier for this object. I…
Navin Viswanath
  • 894
  • 2
  • 13
  • 22
0
votes
1 answer

Remote neo4j connection Permission denied error

i can reach neo4j server from localhost and run queries successfully but i can't run query from remote computer. On remote computer i can access neo4j from browser. http://x.x.x.x:7474 drives me to neo4j web interface. But when i execute a query…
0
votes
0 answers

spring-neo4j throws exception when saves entity - Neo.ClientError.Statement.InvalidSyntax

i have a simple spring-neo4j project and only saves an entity. It works in windows 7 that neo4j server is started in localhost. But when i tried in another two machine(neo4j is started in localhost again) it fails with "Caused by:…
0
votes
1 answer

Writing Unit Test with Spring Data Neo4j

I'm facing Difficulty writing unit tests with Spring Data Neo4j. @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = { Application.class }) @WebAppConfiguration public class SomeRepositoryTest { @Autowired …
Mohsin Mansoor
  • 155
  • 1
  • 1
  • 8
0
votes
0 answers

In Neo4J , Loading a Parent Node is loading duplicate children with id=null

Following is the model with A(UserN) and B(UserRoleN) as objects. @NodeEntity() public class UserN { @GraphId private Long id; @Relationship(type = "hasRole", direction = Relationship.OUTGOING) private List role; …
madireddy
  • 107
  • 3
  • 13
0
votes
1 answer

How to set the null value for a property of @NodeEntity?

I can't set any property to null via a Repository. For example, suppose I have the following entity: @NodeEntity class User { private Long id; private String name; } If this entity already exists in the db with name:"Victor", then if I…
Victor Dombrovsky
  • 2,955
  • 3
  • 21
  • 33
0
votes
1 answer

NodeEntity wont persist

I have the following NodeEntity: @NodeEntity(label = "Book") public class Book{ private Long id; private String content; @Relationship(direction = Relationship.OUTGOING, type="WRITTEN_BY") private User author; } where User…
Urr4
  • 611
  • 9
  • 26