diff --git a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc index 327a257b4d..76dd49f510 100644 --- a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc +++ b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/indexes.adoc @@ -56,8 +56,8 @@ public class Person { // ... other properties omitted - Map attributes; <1> - Map relatives; <2> + Map attributes; <1> + Map relatives; <2> List
addresses; <3> } ---- diff --git a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/mapping.adoc b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/mapping.adoc index a3415b6d26..fb1a08c0f8 100644 --- a/src/main/antora/modules/ROOT/pages/redis/redis-repositories/mapping.adoc +++ b/src/main/antora/modules/ROOT/pages/redis/redis-repositories/mapping.adoc @@ -77,7 +77,7 @@ addresses.[work].city = "... CAUTION: Due to the flat representation structure, Map keys need to be simple types, such as ``String`` or ``Number``. Mapping behavior can be customized by registering the corresponding `Converter` in `RedisCustomConversions`. -Those converters can take care of converting from and to a single `byte[]` as well as `Map`. +Those converters can take care of converting from and to a single `byte[]` as well as `Map`. 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. The second option offers full control over the resulting hash. @@ -140,15 +140,15 @@ address = { city : "emond's field", country : "andor" } The following example shows two examples of `Map` converters: -.Sample Map Converters +.Sample Map Converters ==== [source,java] ---- @WritingConverter -public class AddressToMapConverter implements Converter> { +public class AddressToMapConverter implements Converter> { @Override - public Map convert(Address source) { + public Map convert(Address source) { return singletonMap("ciudad", source.getCity().getBytes()); } } @@ -157,7 +157,7 @@ public class AddressToMapConverter implements Converter, Address> { @Override - public Address convert(Map source) { + public Address convert(Map source) { return new Address(new String(source.get("ciudad"))); } }