Checking the list of built-in validation constraints here
http://www.hibernate.org/hib_docs/annot ... s-built-in I couldn't spot one for validating a decimal value with scale and precision.
Should defining precision and scale on @Column be utilized during validation? I tried this, but it didn't seem to validate my values.
I presume I'll have to write a custom validator. Does anyone happen to have any links to an existing numeric validator?
I plan to create something like
Code:
@Decimal(precision=10, scale=3)
valid for BigDecimal, float and double.
Does this seem right?
Thanks,
Tim