1、前言 在使用Neo4j-ogm时,对于自定义的NodeEntity和NodeRelation存在循环引用的关系时,在jackson序列化时会导致序列化失败,使用一个注解用来解决循环引用。
在 .NET 生态适配方面,Neo4j 拥有远为成熟的工具链——官方 Neo4j.Driver(Bolt 协议)、社区驱动的 Neo4jClient(流畅 Cypher API)、Neo4j-OGM 对象图映射器 Neo4jClient (NuGet,社区活跃,支持 Cypher 流畅接口) Blueprint41 (支持 Memgraph 的 .NET ORM)[101] Neo4jClient 生态远更成熟 对象图映射 Neo4j-OGM .HasMany(o => o.OrderLines) .RefersTo(o => o.Customer); } } Blueprint41 的成熟度不及 Neo4j-OGM
//neo4j.com/download/ APIs and other access methods Bolt protocol Cypher query language Java API Neo4j-OGM Neo4j Object Graph Mapper (Neo4j-OGM) Spring Data Neo4j provides code on top of Neo4-OGM to help quickly finder methods Supports the Cypher Graph Quey Language Support for Neo4j causal clusters Based on the Neo4j-OGM
一旦掌握了基础知识,您可能想要探索将Java与Neo4j集成的更高级方法 - 例如使用Neo4j的对象图形映射(OGM)库,Neo4j-OGM和Spring Data。