sql >> Base de Datos >  >> RDS >> Mysql

Anotación JPA @Size para BigDecimal

Puede usar Hibernate Validator directamente y anotar su campo con @Digits así:

@Digits(integer=5, fraction=2)
@Column(name = "weight")
private BigDecimal weight;