Domain Modeling With Spring Data Neo4j

Spring Data Neo4j provides a powerful framework for building applications with simple POJO annotations. In this blog post, Willie Wheeler explains domain modeling with Neo4j using Spring Data Neo4j.

Focusing on a Person entity (common in so many applications), Willie shows the annotations needed to map into Neo4j nodes and relationships. Then he introduces a repository to retrieve instances from the database, and a controller to expose it all to the web.

The standard class diagram looks something like this:

Read Willie’s full blog post here to appreciate the simplicity.