Entity
#17 - Display Currency for Product Prices - Part 2
Display Currency for Product Prices - Part 2
After introducing the Money
embeddable entity, we need to fix the product tests:
- use
Money
wrapper class instead ofBigDecimal
directly - extend
FormInteractions
to enter a value to a currency field - add
@Valid
&@NotNull
annotation to the price attribute for proper bean validation