Skip to content

Consider custom conversion in EntityRowMapper and MappingR2dbcConverter #59

@asavov

Description

@asavov

Reading of Map entity property is intentionally blocked by above line.

How about allowing it and then delegate to the client's custom DBStoredValue-To-Map converter. Similar to:

    static class Config extends AbstractR2dbcConfiguration {

        @Override @Bean public R2dbcCustomConversions r2dbcCustomConversions() {
            ...
            return new R2dbcCustomConversions(
                    storeConversions,
                    Arrays.asList(new JsonStringToMapConverter()));
        }

        class JsonStringToMapConverter implements Converter<String, Map<String, Object>> {
             ...
        }

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions