My problem is that I read from the db, numbers (BigDecimal) and I view them with DOT as decimal separator, but I would like to see them with COMMA. I used the following code:
@ NumberFormat (style = Style.NUMBER, pattern = “##,###,###.##”)
private BigDecimal number;
My application with the following architecture:
oracle db – hibernate – spring mvc
I need an automatic conversion without manually convert to string with DecimalFormat.
I solved this way: