Skip to content

Fork of SDN5 that integrates Neo4j-OGM with Spring transactions and provides legacy SDN repository patterns.

License

Notifications You must be signed in to change notification settings

neo4j/neo4j-ogm-spring

 
 

Neo4j-OGM Spring Data

This is an official fork of Spring Data Neo4j 5.3.x. SDN5 is in contrast to SDN6 and higher not an object mapper on it’s own right, but uses Neo4j-OGM under the hood. If you are looking for an object mapper with a local (clientside) cache and dirty checking, you are at the right place. If you are looking for a more record oriented, possible reactive approach and stateless sessions, please use SDN6 or higher.

Neo4j-OGM, this version of SDN as well as SDN6 are fully supported by Neo4j.

Introduction

The fork has no additional functionality but is updated in two dimensions:

  • It uses the latest Spring Data Commons (3.1.3 as of writing) and fixes breaking changes that came with it since SDN 5.3.x

  • It uses the latest Neo4j-OGM 4.0.6 and thus is compatible with Neo4j 5.x

  • However, Java 17 is required due to the requirements of the latest Neo4j-Java-Driver underpinning Neo4j-OGM 4

Note
We restarted the version numbering of this fork at 1.0.0 and removed the tags and branches from the fork. Of course, they will be preserved at spring-projects/spring-data-neo4j/releases, and we have no intention to change that.

If you just want to use Neo4j-OGM and SDN5 against Neo4j 4.x over Bolt you can still use the official 5.3.x release.

The coordinates of this SDN versions are:

org.neo4j:neo4j-ogm-spring-data:1.2.1

The package name has not been changed to avoid issues with existing setups that want to use this fork.

Spring Boot itself does not know about this version of SDN and thus won’t autoconfigure it. We offer a very plain Spring Boot starter mitigating this under the following coordinates:

Include in a Maven build

<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-ogm-spring-boot-starter</artifactId>
    <version>1.2.1</version>
</dependency>

Include in a Gradle build

dependencies {
    implementation 'org.neo4j:neo4j-ogm-spring-boot-starter:1.2.1'
}

It brings all necessary dependencies.

License

Spring Data Neo4j is Open Source software released under the Apache 2.0 license. We thank the Spring Data Team for not objecting to this friendly fork.

About

Fork of SDN5 that integrates Neo4j-OGM with Spring transactions and provides legacy SDN repository patterns.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • Java 99.6%
  • Other 0.4%