Dynamic Properties in Spring Neo4j 4 Data

I am using DynamicProperties Spring Data Neo4j 3.x. I miss this class in Spring Data Neo4j 4.0.0.M1 (SDN4). Do I have a new concept in SDN4 for storing dynamic property values?

The DynamicProperties property in @NodeEntity saves all its properties dynamically based on the node itself.

The key / value pair of the DynamicProperties element is stored in a node with keys prefixed with the property name, which is returned by delegation FieldAccessorFactory # 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"); 

leads to node with properties:

  "personalProperties-ZIP" => 8000 "personalProperties-City" => "Zuerich" 
+5
source share
1 answer

Cm.

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

At the moment, our main task is to correct errors and eliminate missing kernel functionality, but this function is discussed as soon as possible. We will need to complete some design work for its implementation, since the basic architecture of SDN has changed significantly in SDN 4.

Please feel free to comment on the above ticket and vote for it.

+4
source

Source: https://habr.com/ru/post/1216264/


All Articles