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
3
votes
2 answers

Cannot use enum in repository query (neo4j/Spring Data)

I'm having a problem querying based on an Enum property of my NodeEntity. The NodeEntity in question is defined: @NodeEntity(label = "Entity") public class MyEntity { @GraphId private Long internalId; .... private State state; …
R.B.
  • 255
  • 1
  • 4
  • 11
3
votes
1 answer

Spring Data Neo4j 4 with Neo4j 3.0: How to pass configuration to embedded driver?

I am in the process of migrating an existing Spring Data Neo4j 3 application (with Neo4j 2.x) to Spring Data Neo4j 4.1 with Neo4j 3.0. The actual migration is done, but the application now fails to start…
geld0r
  • 800
  • 10
  • 22
3
votes
1 answer

Spring Data Neo4 - BeforeSaveEvent deprecated

In my Spring Data Neo4j 4 project - BeforeSaveEvent class is deprecated. Also, previously I used a following code in order to setup created/updated date for my entities: @EventListener public void handleBeforeSaveEvent(BeforeSaveEvent event) { …
alexanoid
  • 24,051
  • 54
  • 210
  • 410
3
votes
2 answers

Neo4j/SDN warining: No identity field found for class of type for exception class

In my Neo4j/Spring Data Neo4j project I have a following exception class: public class CriterionNotFoundException extends NotFoundDomainException { private static final long serialVersionUID = -2226285877530156902L; public…
brunoid
  • 2,121
  • 2
  • 12
  • 22
3
votes
1 answer

Neo4j 3.0 and spring data

I would like to use the new bolt protocol to connect my spring application to neo4j 3.0 database. Is bolt protocol already implemented in spring data?
aGO
  • 1,263
  • 14
  • 30
3
votes
2 answers

Custom query in Spring Data Neo4j not retrieving relationships

So for a few complex operations, I am using custom Cypher queries using the @Query annotation on my custom finder methods in my graph repositories. However, while it retrieves the node, it does not retrieve its direct relationships (i.e. only 1…
Marc Byfield
  • 510
  • 4
  • 14
3
votes
1 answer

Neo4j 2.3.1 Server dies when saving SDN4 Entity with multiple relationships

I'm writing an application for a guide service and I'm running a 3 server cluster of Neo4j 2.3.1 on digital ocean droplets. I'm also using Spring Data Neo4j 4.0.0.RELEASE from a JSF web app running under Tomcat to write and query my data. I have a…
wwixon
  • 45
  • 5
3
votes
1 answer

Updating the target of a simple object relationship with Spring Data Neo4j 4 does not yield the expected result

Just migrated a Spring Data Neo4j 3 project to version 4 (4.0.0.RELEASE, Neo4j 2.2.5 Community Server) and coming up against an issue with a simple one-way object relationship not being updated as expected. This relationship does NOT utilise a…
GT2015
  • 85
  • 4
3
votes
2 answers

How do I query for paths in spring data neo4j 4?

In an earlier version of spring data neo4j (3.3.1), I was able to query for paths in my database and return them as Iterable> like this: public interface ArgumentNodeRepository extends GraphRepository { …
Tyler
  • 373
  • 1
  • 14
3
votes
1 answer

What are the differences between Spring Data Neo4j 4 and neo4j-ogm?

I notice SDN4 has the concept of repositories and annotations for cypher queries, but this seems not much more than programming style? Neo4j-OGM seems straight forward, easy to set up, with a really practical and efficient API. I'm wondering why…
John Deverall
  • 5,954
  • 3
  • 27
  • 37
3
votes
1 answer

Spring Data Neo4j (SDN) 4.0 runtime polymorphism

Spring Data Neo4j (SDN) 4.0 did away with @RelationshipType and @Labels, among other tools that could be used to implement dynamic typing or runtime polymorphism. In SDN 4.0 all polymorphic possibilities (labels and relationship types) must be…
3
votes
3 answers

SDN 4-RC1: RelationRepository.save(relationshipEntity) don't save RelationshipEntities in Graph

To work with a neo4j-graphdatabase standalone server i add the dependency of SDN 4.0.0.RC1 to my pom: org.springframework.data spring-data-neo4j
mzober
  • 91
  • 7
3
votes
1 answer

GraphUnit - transactional integration tests and rollbacks

I am currently using GraphUnit, Spock, and an in process Neo4j server to do integration testing on my Spring Data Neo4j 4.0 backed application. It has been a very nifty tool in doing assertions on the state of the graph database after my test…
simonl
  • 1,240
  • 7
  • 19
3
votes
1 answer

SDN4 - MappingException thrown when using an interface as the end of a RelationshipEntity

This functionality was working at one point but seems to have broken in the latest SDN4 snapshot (7-16-15) I have two node classes, one representing intermediate, non-leaf nodes and one representing leaf vertex nodes of degree one. The two classes…
simonl
  • 1,240
  • 7
  • 19
3
votes
1 answer

Spring Data Neo4J 4.0.0: BeforeSaveEvent not firing?

I'm trying to capture the BeforeSaveEvent when setting up Neo4J in Spring, so that I can call a method beforeSave() on the class that is being saved. Unfortunately, it seems like its not being registered as a listener as non of my print statements…
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
1 2
3
34 35