cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Upgrade @Properties(prefix = "property", allowCast = true) to SDN6

myshareit
Node Clone

I'm trying to upgrade my SDN application to SDN 6 and right now don't know how to upgrade the following construction:

@Properties(prefix = "property", allowCast = true)
private Map<String, Object> properties;

How to define it in SDN 6? Thanks!

2 REPLIES 2

gerrit_meier
Neo4j
Neo4j

X-Post from: Spring Data Neo4j @Properties annotation - Stack Overflow

You would use the @CompositeProperty annotation. This will work with Map<String/Enum, Object> .

Here is the link to the documentation with some further information. Spring Data Neo4j

Thanks for your answer! Unfortunatly, I unable to fully test it right now because blocked with Migration to SDN 6 - issue with relationship between nodes

Also, one addtional question regarding allowCast = true attribute of @Properties annotation. I do not see the same attribute for the @CompositeProperty. Do we still need it or @CompositeProperty will work out of the box without such attribute? Thanks!

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit - November 16 - 17, 2022.


Free NODES Training Series


October 19th -

Intro to Neo4j


October 20th -

Healthcare Analytics Using Neo4j


October 25th -

Handling Neo4j data with Apache Hop


October 26th -

Blazing Fast Graphs: Hands-on with Apache Arrow and Neo4j


November 2nd -

Graph EDA Using the Neo4j GDS Client