2,334 questions
0
votes
1
answer
58
views
Get a list of relationships from Neo4J repository using Spring
I started learning the development of REST API using Spring and Neo4J. I am unable to understand how Repositories work, even I looked to the documentation.
I have Airport node and LINE relationship. ...
0
votes
1
answer
71
views
I am using neo4j 5.26.0, getting Ongoing Transaction error
**There is already an ongoing Spring transaction for the default user of the default database, but you requested the default user of 'neo4j'
**
Above issue comes when I do neo4jTemplate.save(entities),...
2
votes
0
answers
40
views
Spring Boot REST endpoint seems to not execute Neo4j Java driver statements (JHipster + Neo4jConfig + Neo4jService) → no Cypher run
I am integrating Neo4j into my JHipster 8.5.0 / Spring Boot 3.3.0 application.
I have configured a Neo4jConfig with a Driver bean, a Neo4jService to send Cypher statements, and a REST endpoint /api/...
0
votes
1
answer
87
views
Multiple SLF4J Providers with Neo4j Test Harness 2025.04.0 in Gradle
I'm setting up a SpringBoot 3.5.0 project using neo4j with Spring Data Neo4j 7.5.0
For my tests I want to use Neo4j Test Harness 2025.04.0
When starting the tests I get the following error:
Standard ...
0
votes
1
answer
57
views
How to map Neo4j nodes to Java POJOs without annotations on model classes
I have a domain model that shouldn't be annotated with any database specific annotations (like @Node or @Id). I would like to use one of the following libraries to integrate with Neo4j database: ...
0
votes
1
answer
35
views
Cannot fetch child entity (contains) in spring-data-neo4j
Parent class
@Node
@NoArgsConstructor
@AllArgsConstructor
public class Dish {
@Id
private String dishName;
@Relationship(type = "CONTAINS", direction = Relationship.Direction.OUTGOING)
...
0
votes
0
answers
41
views
Spring Data Neo4j Composition
I want to implement using a class as composition.
For example:
public class Person {
String name;
Integer age;
}
@Node("Student")
public class Student {
Person person;
String school;...
0
votes
1
answer
116
views
Issue with Spring Data Neo4j: Fetching Relationships in Both Directions Without Cyclic Dependencies
I’m working with Spring 3.3.2 and Spring Data Neo4j 7.3.2. I have a repository that looks like this:
@Query("MATCH p=allShortestPaths((rootNode:SoftwareComponent {softwareComponent:${"$"...
0
votes
1
answer
70
views
How to run a query with Spring Neo4jClient to Neo4jDB at the start of Spring Application automatically
I have a use case where I need to check if indexes and constraints are present in a neo4j database and add them if not present. This must be done when the spring application starts and cannot be done ...
0
votes
1
answer
47
views
Neo4j Repository Cannot map Collect() to a field of collection type
I am building a forum using Neo4j. In my forum, there are threads which belongs to certain categories and might contain multiple tags. When I fetch the threads from the database, I would like for the ...
0
votes
1
answer
58
views
Mapping additional properties in spring-data-neo4j custom query
I am trying to make use of Neo4J vector similarity search capabilities in spring-data-neo4j (7.3.0) environment.
Following is the data object:
public record ScoredSnippet(Snippet snippet, Double score)...
1
vote
0
answers
84
views
What is the right way to persist and retrieve entities with Spring Data Neo4j?
I have an issue I am experiencing in an application that I am developing in spring boot with Spring Data Neo4j. This could probably be chalked up to wrong data modelling on my part (it's sort of too ...
0
votes
0
answers
87
views
Neo4j bug/issue retrieving a relationship when specifying query depth of 2
I am working on a Spring Boot application using Neo4j as the database. I have a UserEntity class that has a relationship with UserContactEntity.
However, when I run a query to fetch UserEntity along ...
2
votes
1
answer
139
views
Spring boot data Neo4j Maps with value Maps using @CompositeProperty
I'm trying to upgrade from Spring Boot 2.3.12 to 2.7.15 and are having some issues.
In 2.3.12 I had a Neo4j node with the following property with the @Properties annotation:
@Properties(prefix = "...
0
votes
1
answer
50
views
Execute a cql script from neo4j shell
I am using neo4j-community-3.0.4 in linux and I am load to execute cql file in neo4j
a.cql
CREATE (this_s:Student { Name:'Sam', Title:'title', })
./bin/neo4j-shell -v -c < /root/a.cql
It gives ...