package de.trion.microservices.takeorder;
-import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
public class OrderBean
{
@NotNull(message = "Cannot be null")
- @Min(value = 1, message = "Must be a positive number")
private long id;
@NotNull(message = "Cannot be null")
- @Min(value = 1, message = "Must be a positive number")
private long customerId;
@NotNull(message = "Cannot be null")
- @Min(value = 1, message = "Must be a positive number")
private long productId;
@NotNull(message = "Cannot be null")
- @Min(value = 1, message = "Must be a positive number")
private int quantity;