Commit 7079a779 authored by xkorenk's avatar xkorenk
Browse files

another fix

parent 19889b8b
Pipeline #141185 passed with stages
in 2 minutes and 57 seconds
......@@ -49,14 +49,14 @@ public class WineBottleUpsertViewModel extends ViewModelBase {
* volume of bottle
*/
@NotNull(message = "Cannot be empty")
@PositiveOrZero(message = "Has to be a non-negative number")
@Positive(message = "Has to be a positive number")
private BigDecimal volume;
/**
* price of bottle
*/
@NotNull(message = "Cannot be empty")
@PositiveOrZero(message = "Has to be a non-negative number")
@Positive(message = "Has to be a positive number")
private BigDecimal price;
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment