@Retention(value=RUNTIME) @Target(value=FIELD) @Inherited @ConvertWith(converterFactory=org.springframework.data.neo4j.core.schema.CompositePropertyConverterFactory.class) @API(status=STABLE, since="6.0") public @interface CompositeProperty
persistent property
that is composed from multiple properties on a node or relationship. The properties must share a common prefix. SDN defaults
to the name of the field declared on the persistent entity
.
This annotation is mainly to be used on properties of type Map<String, Object>
. All values in the
map are subject to conversions by other registered converters. Nested maps are not supported.
This annotation is the pendant to Neo4j-OGMs org.neo4j.ogm.annotation.Properties.
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Neo4jPersistentPropertyToMapConverter> |
converter |
String |
delimiter
Allows to specify the delimiter between prefix and map value on the properties of the node or relationship in the
graph.
|
String |
prefix
Allows to specify the prefix for the map properties.
|
Class<? extends BiFunction<CompositeProperty.Phase,String,String>> |
transformKeysWith
This attribute allows for configuring a transformation that is applied to the maps keys.
|
public static final String UNSET
public abstract Class<? extends Neo4jPersistentPropertyToMapConverter> converter
public abstract String prefix
public abstract String delimiter
public abstract Class<? extends BiFunction<CompositeProperty.Phase,String,String>> transformKeysWith
CompositeProperty.Phase.WRITE
is applied
before writing the map, CompositeProperty.Phase.READ
is applied on write.Copyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.