hibernate mapping java type for oracle number(22,2) -
what should correct java type mapping match oracle number(22,2) type in underlying table column, doesn't overflow?
will fit in double or must use bigdecimal ?
both do. double can't used represent decimal value, whereas bigdecimal can. choose 1 fits best case. if it's used represent monetary amounts, use bigdecimal.
Comments
Post a Comment