Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-17-2021 08:55 AM
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!
05-17-2021 09:56 PM
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
05-17-2021 11:52 PM
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!
All the sessions of the conference are now available online