C
C
Crunchor2021-01-29 14:54:42
PostgreSQL
Crunchor, 2021-01-29 14:54:42

What data type in Java corresponds to the type Numeric(15,5)?

The postgres database table has fields like numeric(15,5), numeric(17,2), etc.
These fields contain "money" and odds.
What data type should be assigned to objects in Java for field mapping in hibernet ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-29
@Crunkor

BigDecimal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question