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/redis/redis-repositories/mapping.adoc
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ addresses.[work].city = "...
77
77
CAUTION: Due to the flat representation structure, Map keys need to be simple types, such as ``String`` or ``Number``.
78
78
79
79
Mapping behavior can be customized by registering the corresponding `Converter` in `RedisCustomConversions`.
80
-
Those converters can take care of converting from and to a single `byte[]` as well as `Map<String,byte[]>`.
80
+
Those converters can take care of converting from and to a single `byte[]` as well as `Map<String,byte[]>`.
81
81
The first one is suitable for (for example) converting a complex type to (for example) a binary JSON representation that still uses the default mappings hash structure.
82
82
The second option offers full control over the resulting hash.
83
83
@@ -140,15 +140,15 @@ address = { city : "emond's field", country : "andor" }
140
140
141
141
The following example shows two examples of `Map` converters:
142
142
143
-
.Sample Map<String,byte[]> Converters
143
+
.Sample Map<String,byte[]> Converters
144
144
====
145
145
[source,java]
146
146
----
147
147
@WritingConverter
148
-
public class AddressToMapConverter implements Converter<Address, Map<String,byte[]>> {
148
+
public class AddressToMapConverter implements Converter<Address, Map<String,byte[]>> {
149
149
150
150
@Override
151
-
public Map<String,byte[]> convert(Address source) {
151
+
public Map<String,byte[]> convert(Address source) {
0 commit comments