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

Get Neo4j Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.