如何在不再次加载对象的情况下将neo4j org.neo4j.graphdb.Relationship对象转换为spring-data neo4j-Relationship实体?
使用自动连线Neo4jTemplate:
template.load(rel, YourRelationshipModel.class)
请注意,如果您的关系节点使用@Fetch进行注释,则会加载其他数据。