Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am working with an Oracle database and number column are translated to BigDecimal in java. But I always have a type mismatch.
Is there a workaround ? Besides, the number column is the PK and is loaded with an oracle sequence.
Thanks,
Jean Marie
INT, INTEGER and even SMALLINT are sub-types or synonyms of NUMBER, ...
!aa10.AA10_CEPLB.equals("N")?L4:aa10.AA10_CEREMP.equals("P")?L3: aa10.AA10_CEREMP.equals("D")?L1:L2
Type mismatch. cannot convert from long to Bigdecimal.
L4 cannot be resolved ...
Can anyone post any latest update on this Issue ?
Try with below expression for the Big Decimal coloumn:
new BigDecimal(row1.colum_name)
hope this will resolve your error.