Save the coding, just don’t allow null values in the database. Make the default value zero.
As for new BigDecimal(0): no, use BigDecimal.ZERO.
Save the coding, just don’t allow null values in the database. Make the default value zero.
As for new BigDecimal(0): no, use BigDecimal.ZERO.