Skip to content
New issue

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

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

Already on GitHub? # to your account

JdbcCustomConversion does not reject non-Date related default converters anymore #937

Closed
wants to merge 1 commit into from

Conversation

odrotbohm
Copy link
Member

Previously, JdbcCustomConversion rejected any default converter that was not converting from and to java.util.Date. This probably stemmed from the fact that up until recently, Spring Data Commons' CustomConversions only registered date related default converters. As of spring-projects/spring-data-commons#2315 we also support jMolecules' Association and Identifier converters. We've relaxed the rejection to only explicitly reject all non Date/Time related converters if the conversion is from/to java.util.Date but allow everything else out of the box.

@odrotbohm odrotbohm changed the title JdbcCustomConversion does not reject non-Date related default converters. JdbcCustomConversion does not reject non-Date related default converters Mar 11, 2021
@odrotbohm odrotbohm changed the title JdbcCustomConversion does not reject non-Date related default converters JdbcCustomConversion does not reject non-Date related default converters anymore Mar 11, 2021
…ers.

Previously, JdbcCustomConversion rejected any default converter that was not converting from and to java.util.Date. This probably stemmed from the fact that up until recently, Spring Data Commons' CustomConversions only registered date related default converters. As of spring-projects/spring-data-commons#2315 we also support jMolecules' Association and Identifier converters. We've relaxed the rejection to only explicitly reject all non Date/Time related converters if the conversion is from/to java.util.Date but allow everything else out of the box.
@odrotbohm odrotbohm force-pushed the feature/custom-conversions-fix branch from 87d6b52 to 5175c6a Compare March 11, 2021 13:23
schauder pushed a commit that referenced this pull request Mar 12, 2021
…ers.

Previously, JdbcCustomConversion rejected any default converter that was not converting from and to java.util.Date. This probably stemmed from the fact that up until recently, Spring Data Commons' CustomConversions only registered date related default converters. As of spring-projects/spring-data-commons#2315 we also support jMolecules' Association and Identifier converters. We've relaxed the rejection to only explicitly reject all non Date/Time related converters if the conversion is from/to java.util.Date but allow everything else out of the box.

Original pull request #937
@schauder
Copy link
Contributor

Thanks, that's merged.

@schauder schauder closed this Mar 12, 2021
@schauder schauder added the type: enhancement A general enhancement label Mar 12, 2021
@schauder schauder added this to the 2.2 M5 (2021.0.0) milestone Mar 12, 2021
@schauder schauder deleted the feature/custom-conversions-fix branch March 12, 2021 08:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants