BigDecimal field in detail view do not show three decimal places

one entity has a field of type BigDecimal. In Details view, it is displayed using textField i.e. TypedTextField. In database its value is 0.022 but is being displayed as 0.02 i.e. up to two decimal values only. If saved it changes database value to 0.02. Please guide.

Using @NumberFormat(pattern = “#,##0.000”) in data model for the field solved the problem. Thanks