{"id":13529208,"url":"https://github.com/spring-projects/spring-data-neo4j","last_synced_at":"2026-03-13T15:33:26.932Z","repository":{"id":39637839,"uuid":"2470730","full_name":"spring-projects/spring-data-neo4j","owner":"spring-projects","description":"Provide support to increase developer productivity in Java when using Neo4j. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.","archived":false,"fork":false,"pushed_at":"2025-05-05T09:31:28.000Z","size":31778,"stargazers_count":845,"open_issues_count":38,"forks_count":617,"subscribers_count":100,"default_branch":"main","last_synced_at":"2025-05-10T13:57:53.329Z","etag":null,"topics":["ddd","framework","java","neo4j","spring","spring-data"],"latest_commit_sha":null,"homepage":"http://spring.io/projects/spring-data-neo4j","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spring-projects.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.adoc","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2011-09-27T21:02:43.000Z","updated_at":"2025-05-05T09:05:08.000Z","dependencies_parsed_at":"2023-12-15T13:36:10.196Z","dependency_job_id":"9b5b27f9-72db-44d3-97ba-e588950db019","html_url":"https://github.com/spring-projects/spring-data-neo4j","commit_stats":{"total_commits":2054,"total_committers":50,"mean_commits":41.08,"dds":0.6903602726387537,"last_synced_commit":"f10c95f8fbb1428a60e0e254b10da94474653994"},"previous_names":["springsource/spring-data-neo4j"],"tags_count":367,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-neo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-neo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-neo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-projects%2Fspring-data-neo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spring-projects","download_url":"https://codeload.github.com/spring-projects/spring-data-neo4j/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149948,"owners_count":22022851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddd","framework","java","neo4j","spring","spring-data"],"created_at":"2024-08-01T07:00:34.342Z","updated_at":"2026-02-13T15:20:18.005Z","avatar_url":"https://github.com/spring-projects.png","language":"Java","readme":"= Spring Data Neo4j image:https://jenkins.spring.io/buildStatus/icon?job=spring-data-neo4j%2Fmain\u0026subject=Build[link=https://jenkins.spring.io/view/SpringData/job/spring-data-neo4j/] https://gitter.im/spring-projects/spring-data[image:https://badges.gitter.im/spring-projects/spring-data.svg[Gitter]] image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle\u0026labelColor=02303A[\"Revved up by Develocity\", link=\"https://ge.spring.io/scans?search.rootProjectNames=Spring Data Neo4j\"]\n:sectanchors:\n\n// tag::properties[]\n:neo4jGroupId: org.springframework.data\n:artifactId: spring-data-neo4j\n:groupIdStarter: org.springframework.boot\n:artifactIdStarter: spring-boot-starter-data-neo4j\n\n:docs-neo4j-version: 5.3.0\n:docs-neo4j-docker-version: 5\n:docs-neo4j-4-version: 4.4.16\n:docs-neo4j-3-version: 3.5.23\n:spring-boot-version: 3.0.1\n:spring-data-neo4j-version: 7.0.1\n// end::properties[]\n\n[abstract]\n--\nSpring Data Neo4j - or in short _SDN_ - is an ongoing effort to create the next generation of Spring Data Neo4j, with full reactive support and lightweight mapping.\nSDN will work with immutable entities, regardless whether written in Java or Kotlin.\n--\n\nThe primary goal of the https://projects.spring.io/spring-data[Spring Data] project is to make it easier to build Spring-powered applications that use new data access technologies such as non-relational databases, map-reduce frameworks, and cloud based data services.\n\nThe SDN project aims to provide a familiar and consistent Spring-based programming model for integrating with the https://neo4j.com/[Neo4j] Graph Database.\n\n== Code of Conduct\n\nThis project is governed by the link:https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md[Spring Code of Conduct].\nBy participating, you are expected to uphold this code of conduct.\nPlease report unacceptable behavior to spring-code-of-conduct@pivotal.io.\n\n== Manual\n\nFor a gentle introduction and some getting started guides, please use our\nhttps://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#reference[Manual].\n\n== Getting Started\n\n=== Maven configuration\n\n==== With Spring Boot\n\nIf you are on https://spring.io/projects/spring-boot[Spring Boot], all you have to do is to add our starter:\n\n[source,xml,subs=\"verbatim,attributes\"]\n----\n\u003cdependency\u003e\n\t\u003cgroupId\u003e{groupIdStarter}\u003c/groupId\u003e\n\t\u003cartifactId\u003e{artifactIdStarter}\u003c/artifactId\u003e\n\u003c/dependency\u003e\n----\n\nand configure your database connection:\n\n[source,properties]\n----\nspring.neo4j.uri=bolt://localhost:7687\nspring.neo4j.authentication.username=neo4j\nspring.neo4j.authentication.password=secret\n----\n\nPlease have a look at our https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#reference[manual] for an overview about the architecture, how to define\nmappings and more.\n\n==== Without Spring Boot\n\nIf you are using a plain Spring Framework project without Spring Boot, please add this Maven dependency:\n\n[source,xml,subs=\"verbatim,attributes\"]\n----\n\u003cdependency\u003e\n\t\u003cgroupId\u003e{neo4jGroupId}\u003c/groupId\u003e\n\t\u003cartifactId\u003e{artifactId}\u003c/artifactId\u003e\n\t\u003cversion\u003e{spring-data-neo4j-version}\u003c/version\u003e\n\u003c/dependency\u003e\n----\n\nand configure SDN for reactive database access like this:\n\n[source,java]\n----\n@Configuration\n@EnableReactiveNeo4jRepositories\n@EnableTransactionManagement\nclass MyConfiguration extends AbstractReactiveNeo4jConfig {\n\n    @Bean\n    public Driver driver() {\n        return GraphDatabase.driver(\"bolt://localhost:7687\", AuthTokens.basic(\"neo4j\", \"secret\"));\n    }\n\n    @Override\n    protected Collection\u003cString\u003e getMappingBasePackages() {\n        return Collections.singletonList(Person.class.getPackage().getName());\n    }\n}\n----\n\nThe imperative version looks pretty much the same but uses `EnableNeo4jRepositories`  and `AbstractNeo4jConfig`.\n\nIMPORTANT: We recommend Spring Boot, the automatic configuration and especially the dependency management\nthrough the Starters in contrast to the manual work of managing dependencies and configuration.\n\nHere is a quick teaser of a reactive application using Spring Data Repositories in Java:\n\n[source,java]\n----\n@Node\npublic class Person {\n    private Long id;\n    private String name;\n\n    public Person(String name) {\n        this.name = name;\n    }\n}\n\n@Repository\ninterface PersonRepository extends ReactiveNeo4jRepository\u003cPerson, Long\u003e {\n\n    Flux\u003cPerson\u003e findAllByName(String name);\n\n    Flux\u003cPerson\u003e findAllByNameLike(String name);\n}\n\n@Service\nclass MyService {\n\n    @Autowired\n    private final PersonRepository repository;\n\n    @Transactional\n    public Flux\u003cPerson\u003e doWork() {\n\n        Person emil = new Person(\"Emil\");\n        Person gerrit = new Person(\"Gerrit\");\n        Person michael = new Person(\"Michael\");\n\n        // Persist entities and relationships to graph database\n        return repository.saveAll(Flux.just(emil, gerrit, michael));\n    }\n}\n----\n\n=== Building SDN\n\nPlease have a look at the documentation: https://docs.spring.io/spring-data/neo4j/reference/#building-sdn-rx[Building SDN].\n\n== Getting Help\n\nHaving trouble with Spring Data? We’d love to help!\n\n* Check the\nhttps://docs.spring.io/spring-data/neo4j/reference/[reference documentation], and https://docs.spring.io/spring-data/neo4j/docs/current/api/[Javadocs].\n* Learn the Spring basics – Spring Data builds on Spring Framework, check the https://spring.io[spring.io] web-site for a wealth of reference documentation.\nIf you are just starting out with Spring, try one of the https://spring.io/guides[guides].\n* If you are upgrading, check out the https://github.com/spring-projects/spring-data-commons/wiki/#release-notes[changelog of the individual release version] for \"`new and noteworthy`\" features.\n* Ask a question - we monitor https://stackoverflow.com[stackoverflow.com] for questions tagged with https://stackoverflow.com/questions/tagged/spring-data-neo4j[spring-data-neo4j].\n* Report bugs with Spring Data Neo4j at https://github.com/spring-projects/spring-data-neo4j/issues[github.com/spring-projects/spring-data-neo4j/issues].\n\n== Reporting Issues\n\nSpring Data uses GitHub as issue tracking system to record bugs and feature requests. If you want to raise an issue, please follow the recommendations below:\n\n* Before you log a bug, please search the\nhttps://github.com/spring-projects/spring-data-neo4j/issues[issue tracker] to see if someone has already reported the problem.\n* If the issue doesn't already exist, https://github.com/spring-projects/spring-data-neo4j/issues/new[create a new issue].\n* Please provide as much information as possible with the issue report, we like to know the version of Spring Data Neo4j, the database version and the JVM version that you are using.\n* If you need to paste code, or include a stack trace use Markdown +++```+++ escapes before and after your text.\n* If possible try to create a test-case or project that replicates the issue. Attach a link to your code or a compressed file containing your code.\n\n== License\n\nSpring Data Neo4j is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].\n","funding_links":[],"categories":["Connectors","REST API"],"sub_categories":["REST API","Java"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-projects%2Fspring-data-neo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspring-projects%2Fspring-data-neo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-projects%2Fspring-data-neo4j/lists"}