Book Image

Neo4j Cookbook

By : Ankur goel, Ankur Goel
Book Image

Neo4j Cookbook

By: Ankur goel, Ankur Goel

Overview of this book

Table of Contents (17 chapters)
Neo4j Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mapping Neo4j to Java-annotated classes using Spring Data Neo4j


Spring Data Neo4j can increase the productivity of Java by many folds when dealing with Neo4j. It provides a Plain Old Java Objects (POJO) based programming model that significantly reduces the amount of boilerplate code needed to develop Neo4j-based applications. It helps the developer to think in terms of an object-oriented approach, which is easily extendible to add new data models and enhance existing ones (properties, entities, and relationships).

In this recipe, we will learn the use of Neo4j with Spring Data Neo4j.

Getting ready

To step through this recipe, we will need the following configurations to be set before:

The following is the Maven configuration:

<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-neo4j</artifactId>
  <version>2.3.1.RELEASE</version>
</dependency>
<repositories>
  <repository>
    <id>spring-neo4j...