Skip to content

Commit

Permalink
#298 - Refine documentation regarding Converter behavior for collecti…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
mp911de committed Feb 17, 2020
1 parent 1e667fc commit bfff1f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/asciidoc/reference/mapping.adoc
Expand Up @@ -224,6 +224,10 @@ The following example of a Spring Converter implementation converts from a `Row`
----
====

Please note that converters get applied on singular properties.
Collection properties (e.g. `Collection<Person>`) are iterated and converted element-wise.
Collection converters (e.g. `Converter<List<Person>>, OutboundRow`) are not supported.

NOTE: R2DBC uses boxed primitives (`Integer.class` instead of `int.class`) to return primitive values.

The following example converts from a `Person` to a `OutboundRow`:
Expand Down

0 comments on commit bfff1f4

Please sign in to comment.