Questions tagged [spring-data-neo4j-5]

To be used for Spring Data Neo4j 5.0+ information

Project Site: https://projects.spring.io/spring-data-neo4j/

Project Reference Docs: https://docs.spring.io/spring-data/neo4j/docs/5.0.x/reference/html/

GitHub Source: https://github.com/spring-projects/spring-data-neo4j

34 questions
1
vote
1 answer

Neo4j Manual Index on Relationship Properties

I'm going to try in my application Neo4j Manual Index on Relationship Properties in order to fix the performance issue I faced Neo4j Cypher query performance optimization I have a few question which is not clear to me from the official Neo4j…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Creating a neo4j sessionfactory in SDN 5.0.0

Background I have a Maven, Spring data Neo4j project. It posts and gets a single object. I am trying to add sessions, but running into errors. There are docs:…
Rorschach
  • 3,684
  • 7
  • 33
  • 77
1
vote
1 answer

Spring-framework Neo4jRepository function, findById, causes a Cypher Error

Background My spring data neo4j application is giving out cypher errors. This is odd because I am using neo ogm to manage all of my cyper statements, I have not written any cypher myself. Here are my errors: Cypher Error in CLI output Error…
Rorschach
  • 3,684
  • 7
  • 33
  • 77
1
vote
1 answer

SDN5/OGM3 compare java.util.Date at Cypher query

I have the following entity: @NodeEntity public class Action { ... @Index(unique = false) private Date createDate; ... } I need to get the last Action that was created during some previous period of time. In order to do this I have…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
1
vote
1 answer

Spring Data Neo4j 5 OGM 3 and Spring Boot 2.0.0.M4

I'm trying to migrate from SDN 4.2 to SDN 5 and OGM 3 Everything almost works perfectly except one case. Right now in order to save the entity I have to use depth=2 instead of depth=1 like at SDN 4.2 It's hard to explain there so I have created a…
1
vote
1 answer

Spring Data | Neo4J | Querying for the path in the correct order

Versions: org.neo4j neo4j-ogm-core 2.1.1
0
votes
1 answer

Error inserting an entity through a REST API with Spring Boot and Neo4j

I am testing Neo4j with Spring Boot and I have found the following problem when I try to insert an element using Rest API I get the error that a JSON can not be serialized to an Entity. If someone can help me or explain how to change my code or how…
Yuniel Acosta
  • 31
  • 1
  • 10
0
votes
1 answer

Spring Data Neo4j 5 update dynamic properties

I have the following entity: @NodeEntity public class Value { @Properties(prefix = "property", allowCast = true) private Map properties; } I have added the following properties: Map properties1 = new…
0
votes
1 answer

neo4j - are we going to duplicate the domain entities across multiple microservices to avoid application join

I am planning to migrate existing services from mongodb to neo4j graphdb for persistence. I have profile and order service that uses mongo backend. My order domain entity has reference to profileId and I use application code to join Order and…
0
votes
2 answers

Neo4j, SDN5 and index over Object field

I have the following SDN5 node entity: @NodeEntity public class Value { @Index(unique = false) private Object value; } As you may see, I have defined value as Object and placed the index over it. According to my application business…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Spring Data Neo4j dynamic properties and Maps as value

In my @RelationshipEntity I have defined the following dynamic properties: @Properties(prefix = "property", allowCast = true) private Map properties; Under the different Long keys I need to store Map object. Everything…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
0 answers

EnableNeo4jRepositories.sessionFactoryRef is ignored / does nothing

I'm trying to configure a Spring Boot 1.5.9 project with multiple data sources, of which some are Neo4j. The version of spring-data-neo4j I'm using is 4.2.9. My goal is to use a different SessionFactory for different repositories, using a different…
0
votes
1 answer

Neo4j OGM NullPointerException when using @Id @GeneratedValue in abstract superclass

I'm trying to save a domain object that inherits its id annotated with @Id @GeneratedValue(strategy = UuidStrategy.class) from a superclass, but get a NullPointerException when I attempt to do the save, even though the Neo4j OGM manual states that…
0
votes
1 answer

Spring Data Neo4j 5 and the application startup time

In my Spring Data Neo4j 5 project I have the following Neo4j Java configuration: @Bean public org.neo4j.ogm.config.Configuration configuration() { // @formatter:off return new org.neo4j.ogm.config.Configuration.Builder() …
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Neo4j node and relationship size on a single instance

I started my pet project - this is a decision-making system. The project is built on different technologies but Neo4j is the main database and the core of it. I use Spring Data Neo4j 5 together with Spring Boot 2 in order to work with Neo4j. I use…
alexanoid
  • 24,051
  • 54
  • 210
  • 410