I have problems with creating relationships in a NEO4J Db with SDN. The attached nodes are created, just the relationships are missing.
复合服务
@Node("Service")
@Data(staticConstructor = "of")
public final class ServiceEntity {
@Id
private final Long id;
private final String name;
@Relationship(type = "handles", direction = INCOMING)
private final AuthorityEntity authority;
@Relationship("gives")
private final 物品Entity output;
@Relationship(value = "needs", direction = INCOMING)
private final Collection<物品Entity> input;
}
物品
@Node("物品")
@Data(staticConstructor = "of")
public class 物品Entity {
@Id
private final Long id;
private final String name;
}
Authority
@Node("Authority")
@Data(staticConstructor = "of")
public class AuthorityEntity {
@Id
private final String name;
}
新4j 交存
public interface ServiceSpringRepository extends 新4j 交存<ServiceEntity, Long> {
}
Whenever I save some Services it will create all the attached Service, 物品 and Authority nodes, but without any relationships. The view looks like as follows for match(n) return n
<代码>match(n)-[r]->m) 回去n,r,m 我没有记录。
数据库概览认为: