|
I have a BigDecimal storing a 20 digit number. Hibernate is mapping this to a bigint. The result is that the value cannot be stored correctly.
@Column(nullable = false, unique = true, updatable = false) @DecimalMin(value = "1000000000000000000") @Digits(integer = 20, fraction = 0) private BigInteger iccid;
Adding columnDefinition = "numeric(20)" to the Column annotation does not help.
|