You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/object-mapping/metadata-based-mapping.adoc
+28-8Lines changed: 28 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ The conventions are:
13
13
14
14
* The short Java class name is mapped to the primary label in the following manner:
15
15
The class `com.bigbank.SavingsAccount` maps to the `savingsAccount` primary label.
16
-
* The converter uses any<<custom.conversions,Spring Converter>> registered with it to override the default mapping of object properties to node fields and values.
16
+
* The converter uses any<<custom.conversions,Spring Converter>> registered with it to override the default mapping of object properties to node fields and values.
17
17
* The fields of an object are used to convert to and from fields in the graph.
18
18
Public `JavaBean` properties are not used.
19
19
* If you have a single non-zero-argument constructor whose constructor argument names match top-level property names of node, that constructor is used.
20
20
Otherwise, the zero-argument constructor is used.
21
21
If there is more than one non-zero-argument constructor, an exception will be thrown.
22
22
23
23
We support a broad range of conversions out of the box.
24
-
Find the list of supported cypher types in the official drivers manual: https://neo4j.com/docs/driver-manual/current/cypher-values/[Working with Cypher values].
24
+
Find the list of supported cypher types in the official drivers manual: https://neo4j.com/docs/java-manual/current/cypher-workflow/#java-driver-type-mapping[Type mapping].
25
25
26
26
Primitive types of wrapper types are equally supported.
27
27
@@ -49,6 +49,10 @@ Primitive types of wrapper types are equally supported.
49
49
|Float
50
50
|✔
51
51
52
+
|`double[]`
53
+
|List of Float
54
+
|✔
55
+
52
56
|`java.lang.String`
53
57
|String
54
58
|✔
@@ -80,10 +84,6 @@ Notice the `Z`: SDN will store all `java.util.Date` instances in `UTC`.
80
84
If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`) or store the zone as a separate property.
81
85
|
82
86
83
-
|`double[]`
84
-
|List of Float
85
-
|✔
86
-
87
87
|`java.lang.Float`
88
88
|String
89
89
|
@@ -140,6 +140,22 @@ If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`)
140
140
|LocalDateTime
141
141
|✔
142
142
143
+
|`java.time.OffsetDateTime`
144
+
|DateTime
145
+
|
146
+
147
+
|`java.time.Instant`
148
+
|DateTime
149
+
|
150
+
151
+
|`java.util.TimeZone`
152
+
|String
153
+
|
154
+
155
+
|`java.time.ZoneId`
156
+
|String
157
+
|
158
+
143
159
|`java.time.Period`
144
160
|Duration
145
161
|
@@ -184,11 +200,15 @@ If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`)
0 commit comments