0

I use spring jpa and hibernate 4 for the implementation.

In a object, I have a bigDecimal field.

Before saving this field, I see the value: 0.09975.

When it's saved in mariadb, the value is 0.10.

In my objet

private BigDecimal tvqRate;

Jpa have created the table automatically

like a decimal
column size is 19, 
2 decimal digits.

I use spring data repository to save object.

How to save correctly the value?

bernard deromme
  • 151
  • 2
  • 3
  • 19

0 Answers0