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

Why does this SDN4 query throw "The transaction has been terminated"?

We use Spring Data Neo4j 4, and a very simple cypher @Query("start a= node( {0} ) match a return id(a) as graphId,a.name as name,a.base as base") List findNameByIds(@Param("0") List ids); this exception often occurs , sometimes it's…
Beni
  • 51
  • 3
0
votes
1 answer

Mapping Neo4J result to java object

Spring provides @QueryResult annotation to map the returned values to a java object. But seems like the class annotated with @QueryResult can have only instance variables of primitive type. If it is an object then it gets mapped to Map
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
1 answer

Exception on starting up a Spring Data Neo4J 4.0.0 InProcessServer

I got the following exception when instantiating a new org.springframework.data.neo4j.server.InProcessServer. Any help will be highly appreciated. Caused by: org.neo4j.server.ServerStartupException: Starting Neo4j Server failed:…
pv1
  • 504
  • 9
  • 21
0
votes
1 answer

Saving RelationshipEntity not working

I am new to Neo4J and working with Spring data repository. Following is the domain definition @NodeEntity public class Actor { Long id; private Set roles; } @RelationshipEntity(type="PLAYED_IN") public class Role { @GraphId …
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
2 answers

How to add labels dynamically to nodes in Neo4j from neo4j-ogm or spring-data-neo4j?

When I create a node, I want to add multiple labels, known at run-time, to the node. Is it possible to this in neo4j-ogm or spring-data-neo4j?
Claude
  • 489
  • 4
  • 15
0
votes
1 answer

@Index annotation in SDN4

Why there is an @Index annotation in SDN4 if it does not manage Neo4j indexes anymore? In SDN3 it was used to populate indexes in the database, but now, taking into account the documentation, it is not.
Cob
  • 171
  • 10
0
votes
3 answers

SDN4 - Integration testing of neo4j server plugins

I'm trying to test a server plugin from within a unit test. I've tried my best to set up the unit tests the same as this project. The issue I am having with my code is with the InProcessServer created by the PersistenceContext class. The…
John Deverall
  • 5,954
  • 3
  • 27
  • 37
0
votes
1 answer

Partially implemented repository with Spring data Neo4j 4

I'm trying to partially implement a repository using the following structure: public interface ExampleCustomRepository { Iterable findExamplesByUserId(Long id); } @Repository @Transactional public class ExampleCustomRepositoryImpl…
endrec
  • 447
  • 6
  • 17
0
votes
1 answer

Configuration of chained transaction manager in SDN4 after migration from SDN3

At the moment I am trying to migrate from SDN3 to SDN4. In my project I use two databases: Neo4j and MySQL, so I end up with chained transaction manager. However, after migration I have problem with its configuration. Before the migration I had…
Cob
  • 171
  • 10
0
votes
1 answer

How to get the direct relationship entities and directly related nodes in custom query in SDN4?

I have an annotated finder method in my repository: @Query("MATCH (me:User)<-[ab:ASKED_BY]-(q:Question) WHERE id(me) = {0} RETURN q") Iterable findQuestionsByUserId(Long id); My objects like: @NodeEntity public class Question { …
endrec
  • 447
  • 6
  • 17
0
votes
1 answer

Neo4jSession won't recognize NodeEntity as persistable class in Spring MVC module

I am working on a multi-module project, which consists of rest - a Spring MVC module, which contains @RestControllers etc. core - a module which utilizes Spring Data Neo4J 4 and contains all my @Services, @Repositories etc. All unit tests in the…
Xipo
  • 1,765
  • 1
  • 16
  • 23
0
votes
1 answer

Does SDN4 allow multiple relationship of collection type to the same Entity?

When I try to get different relationship type of collection object, the collection property will retrieve all the same entity type even if the relationship type if not the collection relationship type. Is it a bug ? The entity Demo contains two…
minglight
  • 87
  • 6
0
votes
2 answers

Can't create Spring Data Event Listener in Kotlin

I tried creating an event listener like this: @Bean open fun beforeSaveEventApplicationListener(): ApplicationListener { return ApplicationListener() { fun onApplicationEvent(event: BeforeSaveEvent) …
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
0
votes
2 answers

How can make an embedded server with Spring Data Neo4J 4 with IO Platform 1.1.3?

I'm trying to start a new app on Spring Data Neo4J 4. I've having some trouble getting the base configuration working though. Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name…
xenoterracide
  • 16,274
  • 24
  • 118
  • 243
0
votes
1 answer

Problems upgrading to Spring Data Neo4j 4.0.0

I'm trying to upgrade a project to Spring Data Neo4j 4.0.0 and I'm facing two problems : The "spring-data-neo4j-rest" package is missing at MvnRepository (spring-data-neo4j-rest-4.0.0.jar returns 404 error). Does the package still exist and should…
Grégoire C
  • 1,361
  • 1
  • 13
  • 32