Skip to content

Specifies that dotMapKeyReplacement takes a regular expression [DATAMONGO-1790] #2698

Open
@spring-projects-issues

Description

@spring-projects-issues

Logan Mauzaize opened DATAMONGO-1790 and commented

MappingMongoConverter.setMapKeyDotReplacement(String) method permits to specifiy a replacement for dot in map keys. However, it's not a strict replacement but regex-based one (String.replaceAll(String, String))

It would be very nice to specify that string must be a valid regular expression pattern


Affects: 2.0 RC3 (Kay), 1.10.7 (Ingalls SR7)

Reference URL: https://docs.spring.io/spring-data/data-mongo/docs/current/api/org/springframework/data/mongodb/core/convert/MappingMongoConverter.html#setMapKeyDotReplacement-java.lang.String-

Metadata

Metadata

Assignees

Labels

in: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions