Skip to content

Commit 2b73bde

Browse files
authored
docs: Add missing types conversions to the documentation. (#2803)
1 parent e4f0348 commit 2b73bde

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

src/main/antora/modules/ROOT/pages/object-mapping/metadata-based-mapping.adoc

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ The conventions are:
1313

1414
* The short Java class name is mapped to the primary label in the following manner:
1515
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.
1717
* The fields of an object are used to convert to and from fields in the graph.
1818
Public `JavaBean` properties are not used.
1919
* If you have a single non-zero-argument constructor whose constructor argument names match top-level property names of node, that constructor is used.
2020
Otherwise, the zero-argument constructor is used.
2121
If there is more than one non-zero-argument constructor, an exception will be thrown.
2222

2323
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].
2525

2626
Primitive types of wrapper types are equally supported.
2727

@@ -49,6 +49,10 @@ Primitive types of wrapper types are equally supported.
4949
|Float
5050
|✔
5151

52+
|`double[]`
53+
|List of Float
54+
|✔
55+
5256
|`java.lang.String`
5357
|String
5458
|✔
@@ -80,10 +84,6 @@ Notice the `Z`: SDN will store all `java.util.Date` instances in `UTC`.
8084
If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`) or store the zone as a separate property.
8185
|
8286

83-
|`double[]`
84-
|List of Float
85-
|✔
86-
8787
|`java.lang.Float`
8888
|String
8989
|
@@ -140,6 +140,22 @@ If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`)
140140
|LocalDateTime
141141
|✔
142142

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+
143159
|`java.time.Period`
144160
|Duration
145161
|
@@ -184,11 +200,15 @@ If you require the time zone, use a type that supports it (i.e. `ZoneDateTime`)
184200
|List of String (The name value of the enum)
185201
|
186202

187-
|java.net.URL
203+
|`java.net.URL`
204+
|String
205+
|
206+
207+
|`java.net.URI`
188208
|String
189209
|
190210

191-
|java.net.URI
211+
|`java.util.UUID`
192212
|String
193213
|
194214

0 commit comments

Comments
 (0)