Skip to content
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

Added functionality to add customConverters. #1886

Merged

Conversation

bipoool
Copy link
Contributor

@bipoool bipoool commented Dec 30, 2023

Added functionality to register custom converters in the list + cleaned up the code a little. Let me know if I have to add test cases for this. Not added yet as the change was small. Fixes #1876.

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

newConverters.add(new IntegerToEnumConverterFactory(getObjectMapper()));
newConverters.add(new StringToEnumConverterFactory(getObjectMapper()));
newConverters.add(new BooleanToEnumConverterFactory(getObjectMapper()));
List<Object> newConverters = additionalConverters();
Copy link
Collaborator

@mikereiche mikereiche Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting the pull request.

Just leave the newConverters as-is, then instead of calling the new additionalConverters() here, call

registerAdditionalConverters(newConverters)

But rename registerAdditionalConverters to additionalConverters().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are Done @mikereiche

@mikereiche mikereiche added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 10, 2024
Added functionality to register custom converters in the list + cleaned up the code a little and.
Function name changed and restored to old implementation
@bipoool bipoool force-pushed the feature/registerCustomConverter branch from 30bfcf4 to 2c876e5 Compare January 12, 2024 08:30
@mikereiche mikereiche merged commit 56a750d into spring-projects:main Jan 12, 2024
3 checks passed
mikereiche pushed a commit that referenced this pull request Jan 18, 2024
* Added functionality to add customConverters.

Added functionality to register custom converters in the list + cleaned up the code a little and.

* Review chages.

Function name changed and restored to old implementation

* Documentation Changes.
mikereiche pushed a commit that referenced this pull request Jan 18, 2024
* Added functionality to add customConverters.

Added functionality to register custom converters in the list + cleaned up the code a little and.

* Review chages.

Function name changed and restored to old implementation

* Documentation Changes.
mikereiche pushed a commit that referenced this pull request Jan 18, 2024
* Added functionality to add customConverters.

Added functionality to register custom converters in the list + cleaned up the code a little and.

* Review chages.

Function name changed and restored to old implementation

* Documentation Changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Application custom conversions override spring-data-couchbase custom conversions since v5
3 participants