Very trivial issue, I want to display input fields & table columns with % formatting (input/output mask).
Without going into custom Datatype format wanted to give a try to NumberFormat decoration.
@Column(name = "STD_DISCOUNT", precision = 10, scale = 4)
@NumberFormat(style = NumberFormat.Style.PERCENT)
protected BigDecimal stdDiscount;
alternatively
@Column(name = "STD_DISCOUNT", precision = 10, scale = 4)
@NumberFormat(pattern = "0%")
protected BigDecimal stdDiscount;
The field however displays plain number:
10
instead of
10%