O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required