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 2.2.5 - Dijkstra shortest path

I'm using Neo4J 2.2.5 with Spring Data and I want to calculate the shortest path between 2 nodes using Dijkstra. This is my code : PathFinder finder = GraphAlgoFactory …
0
votes
1 answer

Neo4JRequest on spring-data-neo4j 4.1.0.M1

Following reference documentation here there is the code to update a spatial index after node insert final CloseableHttpClient httpClient = HttpClients.createDefault(); @Bean ApplicationListener afterSaveEventApplicationListener()…
Loki
  • 659
  • 1
  • 8
  • 18
0
votes
2 answers

Accessing Neo4j from Async method

My web application uses Neo4j as a data storage, and it uses Spring Data Neo4j 4 framework. As suggested in the tutorial, my neo4j session is bound to my HTTP session: @Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS) public…
endrec
  • 447
  • 6
  • 17
0
votes
0 answers

SDN 4 missing relationships in the graph

When I store my Neo4j nodes to the Neo4j graph, only nodes are stored (no relationships). Does anyone can point me to right direction what i am missing there? here are my nodes @NodeEntity public class Game extends AbstractEntity{ public Long …
Waldemar
  • 48
  • 10
0
votes
1 answer

Cannot create session bean after switching to SDN4.1

I am happy that SDN4.1 is now available, because version 4 was rather unstable. I have upgraded my project as soon as possible, but I have a strange problem which appears when, a method that uses Neo4j database connection is used. I see such…
Cob
  • 171
  • 10
0
votes
1 answer

Neo4j OGM how to delete relationship

I have two neo4j-OGM node entities connected with property-less relationship like so: @NodeEntity public class User { @Relationship(type = RelationshipNames.USER_DEVICES, direction = Relationship.UNDIRECTED) private Set
Aviv Carmi
  • 907
  • 8
  • 21
0
votes
1 answer

Spring data Neo4j fetch relationships

I am using spring-data-neo4j V4 and look for solution how to fetch entities which are not directly connected to the loaded entity. To explain: I do have 3 entities in my neo4j database. @NodeEntity(label="membership") public class Membership extends…
K.E.
  • 818
  • 2
  • 12
  • 28
0
votes
1 answer

SpringDataNeo4j-4 derived finders with custom queries

I am currently using SpringDataNeo4j–4.1.0-BUILD-SNAPSHOT. I access the database using the “extends GraphRepository" structure and the Neo4jTemplate. Among other things I am using simple derived finder queries like: Event findById (Long id) This…
fkorn
  • 50
  • 6
0
votes
0 answers

Spring Data Neo4j 4 doesn't recognize domain objects housed in a jar file

I wasted a day on this, but it appears that Spring Data Neo4j 4 will not load domain objects from a jar file. I had a simple war container and within it I had a jar file containing all my domain objects. I kept getting class cast exceptions and…
Pudge
  • 98
  • 1
  • 6
0
votes
1 answer

cypher query is not returning the results when trying to use @QueryResult to map to POJO

I'm running a cypher query using org.neo4j.ogm.session.Session#query(java.lang.Class, java.lang.String, java.util.Map) The Class is a POJO which I have annotated using @QueryResult @QueryResult public class…
Gaurav Abbi
  • 645
  • 9
  • 23
0
votes
1 answer

Repository save() is not working

I am currently playing around with spring-data-neo4j and have a really weird behaviour around persisting data. I read the Getting Started guide and looked through the Good Relationships: The Spring Data Neo4j Guide Book. Loading existing nodes…
0
votes
1 answer

Spring Data Neo4j: Application exception overridden by rollback exception

I have a long transaction and when an exception occurs the web application is still working but if I call some actions that involve the db (remote by REST) the action take long time to fail. INFO …
aGO
  • 1,263
  • 14
  • 30
0
votes
1 answer

a.neo4j.mapping.Neo4jPersistentProperty: 73 - Owning ClassInfo is null for field

what does this error message mean? 2016-01-23 19:07:24,914 WARN ta.neo4j.mapping.Neo4jPersistentProperty: 73 - Owning ClassInfo is null for field: private java.lang.Long com.xenoterracide.rpf.AbstractPersistable.id and propertyDescriptor:…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
0
votes
1 answer

Don't understand behavior of nested transactions in Spring

My database has triggers. They trigger after a creation of an entity. I want to test a condition, which depends on results of the trigger execution. So, I need to be able to see those results inside my test. But triggers will trigger after a commit,…
0
votes
1 answer

Spring-data-neo4j 4.0.0 repository makes multiple REST calls instead of grouping them

I'm using Spring-data-neo4j 4.0.0 with Neo4j 2.3.1 and I'm wondering why when I do something like: entityRepository.save(Iterable multipleObjects); it actually does multiple REST calls on Neo4j server: - POST to create the transaction (done once,…
tigrou83
  • 157
  • 10