Spring Data Neo4j (SDN)

SDN5 vs SDN6 - Java Libraries Structure

SDN5 vs SDN6

SDN5

SDN5 does not provide any other level of abstraction by itself but uses the Neo4j-OGM library under the hood (like Spring Data JPA does with a JPA implementation). You could opt-in to use the Neo4j-OGM’s SessionFactory that you can get injected into your classes.

SDN6

SDN6 (was named SDN/RX during WIP) provides three levels of abstraction (all of them support Spring Transaction):

  1. Neo4jClient - not aware of any mapping that was done. like a Neo4j Driver on steroids
  2. Neo4jTemplate - uses the metadata from the domain mapping to provide functionality for handling entities
  3. Neo4jRepository - the third and highest level of abstraction

SDN6 removed the query by depth

Subpages

Code Examples