At my Neo4j/SDN 4 project I have a following entity:
@NodeEntity
public class Value extends BaseEntity {
@Index(unique = false)
private Object value;
private String description;
...
}
During the application run-time I want to be able to add a new dynamic properties to Value
node, like for example value_en_US
, value_fr_FR
.
Right now I don't know what exact properties will be added to a particular Value
node during application run-time so I can't define these properties at the code as a separate fields in Value
.
Is there at SDN 4 any mechanisms to define these properties during the application run-time? I need something similar to DynamicProperties
from SDN 3.
There is no such functionality in SDN 4, but it will be added in SDN 5 through a @Properties
annotation on Map
.
It will be available for testing in snapshot version very soon. Check out this commit for more details