java - Neo4j 未正确保存标签

标签 java spring neo4j

我正在使用 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/

相关文章:

java - 用于提取方法/注释的 Java 源代码静态代码解析器

java - Scala murmur 哈希与 Java 原生哈希

java - 处理java RMI连接拒绝主机异常

spring - 如何在spring-data中插入db?

java - 我可以在 dispatcher-servlet 中定义 beans 吗?

neo4j - Cypher 到 Neo4JClient 不同收集

java - Activity 的 AlertDialog 样式按钮

java - 当开发工具重新启动 Web 服务器时,计划任务不会停止

Neo4j Spatial 'WithinDistance' Cypher 查询返回空,而 REST 调用返回数据

neo4j - Neo4j中如何将时间戳转换为日期