All Projects → spring-projects → Spring Data Neo4j

spring-projects / Spring Data Neo4j

Licence: apache-2.0
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.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Spring Data Neo4j

Spring Data Mongodb
Provide support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
Stars: ✭ 1,253 (+89.27%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data Jpa
Simplifies the development of creating a JPA-based data access layer.
Stars: ✭ 2,238 (+238.07%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data Commons
Spring Data Commons. Interfaces and code shared between the various datastore specific implementations.
Stars: ✭ 542 (-18.13%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data Rest
Simplifies building hypermedia-driven REST web services on top of Spring Data repositories
Stars: ✭ 743 (+12.24%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data Redis
Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
Stars: ✭ 1,293 (+95.32%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data Cassandra
Provides support to increase developer productivity in Java when using Apache Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
Stars: ✭ 315 (-52.42%)
Mutual labels:  spring-data, framework, spring, ddd
Spring Data R2dbc
Provide support to increase developer productivity in Java when using Reactive Relational Database Connectivity. Uses familiar Spring concepts such as a DatabaseClient for core API usage and lightweight repository style data access.
Stars: ✭ 534 (-19.34%)
Mutual labels:  spring-data, framework, spring, ddd
Angular Spring Data Rest
An AngularJS module to ease the work with a Spring Data REST backend.
Stars: ✭ 165 (-75.08%)
Mutual labels:  spring-data, spring
Spring Data Examples
Examples for using Spring Data for JPA, MongoDB, Neo4j, Redis
Stars: ✭ 181 (-72.66%)
Mutual labels:  spring-data, neo4j
Digital Restaurant
DDD. Event sourcing. CQRS. REST. Modular. Microservices. Kotlin. Spring. Axon platform. Apache Kafka. RabbitMQ
Stars: ✭ 222 (-66.47%)
Mutual labels:  spring-data, ddd
Atom
Java course materials
Stars: ✭ 293 (-55.74%)
Mutual labels:  spring-data, spring
Spring Content
Cloud-Native Storage and Enterprise Content Services (ECMS) for Spring
Stars: ✭ 151 (-77.19%)
Mutual labels:  spring-data, spring
Springbootsample
spring boot sample source
Stars: ✭ 95 (-85.65%)
Mutual labels:  spring-data, spring
spring-data-ldap
Repository abstraction for Spring LDAP
Stars: ✭ 53 (-91.99%)
Mutual labels:  spring-data, ddd
Angularjs Springmvc Sample Boot
A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.
Stars: ✭ 309 (-53.32%)
Mutual labels:  spring-data, spring
Awesome Spring
A curated list of awesome books, tutorials, courses, and resources for the Spring framework ecosystem.
Stars: ✭ 186 (-71.9%)
Mutual labels:  spring-data, spring
Nb Springboot
NetBeans IDE plugin supporting programming with Spring Boot
Stars: ✭ 111 (-83.23%)
Mutual labels:  spring-data, spring
Spring Petclinic Rest
REST version of the Spring Petclinic sample application
Stars: ✭ 257 (-61.18%)
Mutual labels:  spring-data, spring
All Things Cqrs
Comprehensive guide to a couple of possible ways of synchronizing two states with Spring tools. Synchronization is shown by separating command and queries in a simple CQRS application.
Stars: ✭ 474 (-28.4%)
Mutual labels:  spring, ddd
Articles
This repository along with the exercises repository (https://github.com/njnareshjoshi/exercises) contains coding examples for my blog ProgrammingMitra
Stars: ✭ 92 (-86.1%)
Mutual labels:  spring-data, spring

image:https://spring.io/badges/spring-data-neo4j/ga.svg[Spring Data Neo4j,link=https://projects.spring.io/spring-data-neo4j#quick-start] image:https://spring.io/badges/spring-data-neo4j/snapshot.svg[Spring Data Neo4j,link=https://projects.spring.io/spring-data-neo4j#quick-start]

= Spring Data Neo4j image:https://jenkins.spring.io/buildStatus/icon?job=spring-data-neo4j%2Fmaster&subject=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]] :sectanchors:

// tag::properties[] :neo4jGroupId: org.springframework.data :artifactId: spring-data-neo4j :groupIdStarter: org.springframework.boot :artifactIdStarter: spring-boot-starter-data-neo4j

:neo4j-version: 4.1.5 :spring-boot-version: 2.4.1 :spring-data-neo4j-version: 6.0.2 // end::properties[]

[abstract]

Spring 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. SDN will work with immutable entities, regardless whether written in Java or Kotlin.

The 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.

The SDN project aims to provide a familiar and consistent Spring-based programming model for integrating with the https://neo4j.com/[Neo4j] Graph Database.

== Code of Conduct

This project is governed by the link:https://github.com/spring-projects/.github/blob/master/CODE_OF_CONDUCT.md[Spring Code of Conduct]. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to [email protected].

== Manual

For a gentle introduction and some getting started guides, please use our https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#reference[Manual].

== Getting Started

=== Maven configuration

==== With Spring Boot

If you are on https://spring.io/projects/spring-boot[Spring Boot], all you have to do is to add our starter:

[source,xml,subs="verbatim,attributes"]

{neo4jgroupId} {artifactIdStarter} {spring-data-neo4j-version} ----

and configure your database connection:

[source,properties]

spring.neo4j.uri=bolt://localhost:7687 spring.neo4j.authentication.username=neo4j spring.neo4j.authentication.password=secret

Please 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 mappings and more.

==== Without Spring Boot

If you are using a plain Spring Framework project without Spring Boot, please add this Maven dependency:

[source,xml,subs="verbatim,attributes"]

{springGroupId} {artifactId} {spring-data-neo4j-version} ----

and configure SDN for reactive database access like this:

[source,java]

@Configuration @EnableReactiveNeo4jRepositories @EnableTransactionManagement class MyConfiguration extends AbstractReactiveNeo4jConfig {

@Bean
public Driver driver() {
    return GraphDatabase.driver("bolt://localhost:7687", AuthTokens.basic("neo4j", "secret"));
}

@Override
protected Collection<String> getMappingBasePackages() {
    return Collections.singletonList(Person.class.getPackage().getName());
}

}

The imperative version looks pretty much the same but uses EnableNeo4jRepositories and AbstractNeo4jConfig.

IMPORTANT: We recommend Spring Boot, the automatic configuration and especially the dependency management through the Starters in contrast to the manual work of managing dependencies and configuration.

Here is a quick teaser of a reactive application using Spring Data Repositories in Java:

[source,java]

@Node public class Person { private Long id; private String name;

public Person(String name) {
    this.name = name;
}

}

@Repository interface PersonRepository extends ReactiveNeo4jRepository<Person, Long> {

Flux<Person> findAllByName(String name);

Flux<Person> findAllByNameLike(String name);

}

@Service class MyService {

@Autowired
private final PersonRepository repository;

@Transactional
public Flux<Person> doWork() {

    Person emil = new Person("Emil");
    Person gerrit = new Person("Gerrit");
    Person michael = new Person("Michael");

    // Persist entities and relationships to graph database
    return repository.saveAll(Flux.just(emil, gerrit, michael));
}

}

=== Building SDN

Please have a look at the documentation: https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#building-sdn-rx[Building SDN].

== Getting Help

Having trouble with Spring Data? We’d love to help!

== Reporting Issues

Spring 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:

  • Before you log a bug, please search the https://github.com/spring-projects/spring-data-neo4j/issues[issue tracker] to see if someone has already reported the problem.
  • If the issue doesn’t already exist, https://github.com/spring-projects/spring-data-neo4j/issues/new[create a new issue].
  • 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.
  • If you need to paste code, or include a stack trace use Markdown +++```+++ escapes before and after your text.
  • 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.

== License

Spring Data Neo4j is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].