Warm tip: This article is reproduced from serverfault.com, please click

Spring Data Neo4j @Properties annotation

发布于 2021-05-16 10:54:41

I'm trying to port my legacy code to the latest version of Spring Data Neo4j and unable to find the following annotation:

@Properties (org.neo4j.ogm.annotation.Properties)

What should be used instead of this?

Questioner
alexanoid
Viewed
0
meistermeier 2021-05-17 23:11:57

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. https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#custom.conversions.composite-properties