/** * Prepares the given {@link Map} key to be converted into a {@link String}. Will invoke potentially registered custom * conversions and escape dots from the result as they're not supported as {@link Map} key in MongoDB. * * @param key must not be {@literal null}. * @return */ private String prepareMapKey(Object key) { Assert.notNull(key, "Map key must not be null!"); String convertedKey = potentiallyConvertMapKey(key); return potentiallyEscapeMapKey(convertedKey); }
/** * Prepares the given {@link Map} key to be converted into a {@link String}. Will invoke potentially registered custom * conversions and escape dots from the result as they're not supported as {@link Map} key in MongoDB. * * @param key must not be {@literal null}. * @return */ private String prepareMapKey(Object key) { Assert.notNull(key, "Map key must not be null!"); String convertedKey = potentiallyConvertMapKey(key); return potentiallyEscapeMapKey(convertedKey); }
@Override public String potentiallyEscapeMapKey(String source) { return super.potentiallyEscapeMapKey(source); }