Skip to content

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Sep 4, 2025

We now align with the driver recommendation to not favor a particular representation for UUID or BigInteger/BigDecimal to avoid representation changes caused by upgrades to a newer Spring Data version.

We expect an explicit configuration by applications.

Closes #5037

We now align with the driver recommendation to not favor a particular representation for UUID or BigInteger/BigDecimal to avoid representation changes caused by upgrades to a newer Spring Data version.

We expect an explicit configuration by applications.
@@ -27,7 +39,24 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.*;
import java.util.ArrayList;
Copy link
Member Author

Choose a reason for hiding this comment

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

Seems something is off with your import * settings (IDEA Class Count to use * should be 11)

Copy link
Member

Choose a reason for hiding this comment

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

hm, right - not sure when that happened.

Extend configuration options in a way that allows to register different conversion options for numeric values so users can recreate the 4.x default behaviour using String as default while honoring field specific configuration via the targetType attribute of the Field Annotation.
christophstrobl and others added 3 commits September 8, 2025 16:48
Extend configuration options in a way that allows to register different conversion options for numeric values so users can recreate the 4.x default behaviour using String as default while honoring field specific configuration via the targetType attribute of the Field Annotation.
Register BigDecimal and BigInteger as simple types to allow explicitly typed writes and register converters in the ConversionService directly to avoid forcing a specific type.

Revert BigDecimalRepresentation list change to use only one representation.

In a sense, we're aligning with MongoDB's driver behavior that BigDecimal now maps by default to Decimal128, while BigInteger requires explicit configuration.
christophstrobl pushed a commit that referenced this pull request Sep 9, 2025
We now align with the driver recommendation to not favor a particular representation for UUID or BigInteger/BigDecimal to avoid representation changes caused by upgrades to a newer Spring Data version.

We expect an explicit configuration by applications.

Closes: #5037
Original Pull Request: #5051
christophstrobl added a commit that referenced this pull request Sep 9, 2025
christophstrobl pushed a commit that referenced this pull request Sep 9, 2025
Register BigDecimal and BigInteger as simple types to allow explicitly typed writes and register converters in the ConversionService directly to avoid forcing a specific type.

Revert BigDecimalRepresentation list change to use only one representation.

In a sense, we're aligning with MongoDB's driver behavior that BigDecimal now maps by default to Decimal128, while BigInteger requires explicit configuration.

Original Pull Request: #5051
christophstrobl added a commit that referenced this pull request Sep 9, 2025
Original Pull Request: #5051
@christophstrobl christophstrobl deleted the issue/5037 branch September 9, 2025 12:00
@christophstrobl christophstrobl added this to the 5.0 M6 (2025.1.0) milestone Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove representation format defaulting for UUID, BigDecimal, and BigInteger
2 participants