[JAVA-3273] Ability to configure replacement for dot in a Map<String, Object> Created: 23/Apr/19 Updated: 16/Nov/21 Resolved: 29/Apr/19 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Satyaprakash Reddy | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Background There are multiple ways to store a nested document in mongodb with dot in field names.
But the important abilities we might loose are querying and patching of nested fields. To be able to retain these two, we might have to replace dot character with some decent character sequence and persist it. Today, there is no easy way to specify a replacement for dot in codecs. For e.g. Spring data for mongodb provides an easy way to do this: Documentation:
Ask It would be good to provide an easy knob to set replacement for special characters(dot and dollar to start with) and all the codecs should replace those special characters in the property names.
|
| Comments |
| Comment by Ian Whalen (Inactive) [ 29/Apr/19 ] |
|
satyaprakash.vennapusa thanks for the change request - we're aware of the general requirement users have but don't necessarily plan to fix it in this way. Please follow |