@Retention(value=RUNTIME) @Target(value=FIELD) @Inherited public @interface Properties
prefix()
, delimiter and keys in the Map. If the delimiter,
prefix or keys conflict with other field names in the class the behaviour is not defined.
Supported types for keys in the Map are String and Enum.
The values in the Map can be of any Java type equivalent to Cypher types. If full type information is provided other
Java types are also supported.
If allowCast()
is set to true then types that can be cast to corresponding Cypher types are allowed as well.Modifier and Type | Optional Element and Description |
---|---|
boolean |
allowCast
Some Java types, like Integer and Float, can be automatically cast into a wider type, like Long and Double, by
the Neo4j type systems.
|
String |
delimiter |
String |
prefix
Allows for specifying a prefix for the map properties.
|
Class<? extends BiFunction<Properties.Phase,String,String>> |
transformEnumKeysWith
This attribute allows for configuring a transformation that is applied to enum properties.
|
public abstract String prefix
public abstract String delimiter
public abstract boolean allowCast
public abstract Class<? extends BiFunction<Properties.Phase,String,String>> transformEnumKeysWith
Properties.Phase.TO_GRAPH
is applied
before the name of the enum is written to the graph, Properties.Phase.TO_ENTITY
is applied before an instance of the enum
value is referenced.Copyright © 2015–2020 Neo Technology, Inc.. All rights reserved.