JOOQ Oracle Number precision and java number mapping
问题 Can anyone tell me or provide a ref to the mapping between oracle number precisions and java types ie at what point does a number(x) get mapped to a short, int, long BigInteger etc 回答1: Java's integer types are not a perfect match for Oracle's NUMBER types. Essentially, there are two ways to map between the worlds, both imperfect: The status quo: strictly less than NUMBER(3) -> Byte . This guarantees that a SQL value can always be read to its Java type. Some Java value might not be writable