Hi,
I have domain with constraints like min value must greater than 0
I have no idea how to change the message if the constraints are not passed.
which file i need to edit to do that ?
I also need to display the values some properties as well .. like
"you cannot make any transaction because your balance is less than 100. Your current balance is ${currentBalance} after deducted. Your previous balance is ${previousBalance} and amount that need to be deducted ${deductedValue}"
note my class:
class Transaction
BigDecimal previousBalance
BigDecimal currentBalance
BigDecimal deductedValue ;
constraints currentBalance(min:100)
beforeUpdate => currentBalance = previousBalance - deductedValue