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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -