In my mapping, I often have the requirement that 0 values (e.g. BigDecimal.ZERO) should be treated as NULL values. If it were JavaScript number values, then the requirement would be that all falsy values should be mapped to NULL.
Example:
BigDecimal => String
If NULL then map to NULL
If BigDecimal.signum() == 0 then map to NULL
All other values: .toString()
Is there a build-in configuration to achieve this, or do I need to implement a custom mapper?