Spring Data Neo4j 4中的DynamicProperties [英] DynamicProperties in Spring Data Neo4j 4

查看:201
本文介绍了Spring Data Neo4j 4中的DynamicProperties的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 DynamicProperties 。我在Spring Data Neo4j 4.0.0.M1(SDN4)中缺少这个类。我在SDN4中有一个新概念来存储动态属性值吗?

I'm using DynamicProperties of Spring Data Neo4j 3.x. I'm missing this class in Spring Data Neo4j 4.0.0.M1 (SDN4). I there a new concept in SDN4 to store dynamic property values?

@NodeEntity 商店中的 DynamicProperties 属性所有属性都在底层节点上动态生成。

A DynamicProperties property on a @NodeEntity stores all its properties dynamically on the underlying node itself.

DynamicProperties 成员的键/值对存储在节点上,并带有前缀键使用 DelegatingFieldAccessorFactory#getNeo4jPropertyName(Field)返回的属性名称。

The key/value pairs of the DynamicProperties member are stored on the node with the keys prefixed with the property name that is returned by DelegatingFieldAccessorFactory#getNeo4jPropertyName(Field).

NodeEntity
 class Person {
     String name;
     DynamicProperties personalProperties = new DynamicPropertiesContainer();
 }

 Person p = new Person();
 p.persist();
 p.personalProperties.setProperty("ZIP", 8000);
 p.personalProperties.setProperty("City", "Zuerich");

会产生一个具有以下属性的节点:

results in a node with the properties:

 "personalProperties-ZIP" => 8000
 "personalProperties-City" => "Zuerich"


推荐答案

请参阅

https://jira.spring.io/browse/DATAGRAPH- 555

目前,我们主要关心的是修复错误,并解决核心缺失功能,但正在讨论此功能应尽快纳入。我们需要做一些设计工作才能实现它,因为SDN的基础架构在SDN 4中发生了很大的变化。

At the moment, our primary concern is fixing bugs, and addressing core missing functionality, but this feature is under discussion to be included as soon as possible. We will need to do some design work in order to implement it, because the underlying architecture of SDN has changed considerably in SDN 4.

请随意评论以上内容票,并投票。

Please feel free to comment on the above ticket, and to up-vote it.

这篇关于Spring Data Neo4j 4中的DynamicProperties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆