我正在使用 Spring 将一些节点添加到我的 neo4j 数据库中。当我保存“Person”节点时,我注意到它被保存了两次。一次作为“Person”,另一次作为“_Person”。
有人知道这是为什么吗?
最佳答案
这是记录的和预期的行为。 RTFM(阅读详细手册):http://docs.spring.io/spring-data/data-neo4j/docs/3.2.1.RELEASE/reference/html/#reference_programming-model_typerepresentationstrategy :
Each node gets labeled with its type and all supertypes and interfaces that are also @NodeEntity-annotated. There is a special Label prefixed with _ that represents the current type of the entity.
关于java - Neo4j 未正确保存标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27576524/