Skip to content

DATAMONGO-1118 - MappingMongoConverter uses Converter when reading but not writing Maps. #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

We now allow conversions of map keys using CustomConverter implementation as long as the conversion target type is a String.

christophstrobl and others added 3 commits December 19, 2014 13:13
…t not writing Maps.

We now allow conversions of map keys using CustomConverter implementation as long as the conversion target type is a String.
…t not writing Maps.

Simplified potentiallyConvertMapKey in MappingMongoConverter.
Fixed typos in CustomConversions.

Original pull request: #260.
@chrylis
Copy link

chrylis commented Dec 31, 2014

In CustomConversions.java:248, the typo should be corrected to "object", not "inject".

christophstrobl added a commit that referenced this pull request Jan 6, 2015
…r Map keys, too.

We now allow conversions of map keys using custom Converter implementations if the conversion target type is a String.

Original pull request: #260.
thomasdarimont pushed a commit that referenced this pull request Jan 6, 2015
…onverter.

Fixed typos in CustomConversions.

Original pull request: #260.
odrotbohm added a commit that referenced this pull request Jan 6, 2015
Created dedicated prepareMapKey(…) method to chain calls to potentiallyConvertMapKey(…) and potentiallyEscapeMapKey(…) and make sure they always get applied in combination.

Fixed initial map creation for DBRefs to apply the fixed behavior, too.

Original pull request: #260.
christophstrobl added a commit that referenced this pull request Jan 6, 2015
…r Map keys, too.

We now allow conversions of map keys using custom Converter implementations if the conversion target type is a String.

Original pull request: #260.
thomasdarimont pushed a commit that referenced this pull request Jan 6, 2015
…onverter.

Fixed typos in CustomConversions.

Original pull request: #260.
odrotbohm added a commit that referenced this pull request Jan 6, 2015
Created dedicated prepareMapKey(…) method to chain calls to potentiallyConvertMapKey(…) and potentiallyEscapeMapKey(…) and make sure they always get applied in combination.

Fixed initial map creation for DBRefs to apply the fixed behavior, too.

Original pull request: #260.
christophstrobl added a commit that referenced this pull request Jan 6, 2015
…r Map keys, too.

We now allow conversions of map keys using custom Converter implementations if the conversion target type is a String.

Original pull request: #260.
thomasdarimont pushed a commit that referenced this pull request Jan 6, 2015
…onverter.

Fixed typos in CustomConversions.

Original pull request: #260.
odrotbohm added a commit that referenced this pull request Jan 6, 2015
Created dedicated prepareMapKey(…) method to chain calls to potentiallyConvertMapKey(…) and potentiallyEscapeMapKey(…) and make sure they always get applied in combination.

Fixed initial map creation for DBRefs to apply the fixed behavior, too.

Original pull request: #260.
@odrotbohm odrotbohm closed this Jan 6, 2015
@odrotbohm odrotbohm deleted the issue/DATAMONGO-1118 branch January 6, 2015 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants