-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow users to opt into storing BigInteger as Decimal128 [DATAMONGO-2590] #3444
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
Comments
Jeff Yemin commented BigDecimal is probably the more common type that users would want to map to Decimal128 |
@Field(targetType = FieldType.DECIMAL128)
BigDecimal bigDecimal; By registering a custom enum BigIntegerToDecimal128Converter implements Converter<BigInteger, Decimal128> {
INSTANCE;
public Decimal128 convert(BigInteger source) {
return ...
}
}
// ...
@Field(targetType = FieldType.DECIMAL128)
BigInteger bigInteger; |
Should we consider defaulting to |
Sorry to necrobump 4 years later, I 100% agree with @mp911de on defaulting to We missed the 3.0 milestone, but can we try to push this modification for the next version* ? |
Christoph Strobl opened DATAMONGO-2590 and commented
Issue Links:
("depends on")
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: