Here I read that length in @column is only for generated DDL. Is this true for precision and scale?
@Column(precision = 15, scale = 5)
private Integer myField;
If so: How to define precision and scale for JPA-validation?
The JPA javadocs and spec (links on this page) make it clear that these values are for schema generation ONLY. They are also not part of the the Bean Validation standard, so nothing to do with "validation".
I found out how to do this:
@Column
@Digits(integer = 15, fraction = 5)
private Integer myField;