BigDecimal is storing as String in Mongodb Java

Hi ,

I was working Big decimal in java Model class, when the record is inserted into db it’s value is getting stored as String instead of NumberDecimal .
Even i have used @Field Annotation
@Field(targetType = FieldType.DECIMAL128).but no use .Can anyone please help me how to overcome this situation .

Hi @gopinath_pappu,

Can you reproduce this in a minimalistic piece of code so we can discuss directly with code?

You can take this repo as an example for instance. The POJO mapping example should already be close to what you have I guess?

Cheers,
Maxime.