From: Kai Moritz Date: Sun, 7 Jun 2020 09:39:05 +0000 (+0200) Subject: streams - Übungen - Microservices - Schritt 03 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1d74e253330fe4e04db523cc504ce64cb3619304;p=demos%2Fmicroservices streams - Übungen - Microservices - Schritt 03 -- Validierung in take-order-service entfernt * Validierung der übergebenen Zahlen entfernt * Dies soll ja jetzt iin einem separatem Microservice umgesetzt werden --- diff --git a/take-order/src/main/java/de/trion/microservices/takeorder/OrderBean.java b/take-order/src/main/java/de/trion/microservices/takeorder/OrderBean.java index b5343aa..4cdbfcf 100644 --- a/take-order/src/main/java/de/trion/microservices/takeorder/OrderBean.java +++ b/take-order/src/main/java/de/trion/microservices/takeorder/OrderBean.java @@ -1,6 +1,5 @@ package de.trion.microservices.takeorder; -import javax.validation.constraints.Min; import javax.validation.constraints.NotNull; @@ -10,16 +9,12 @@ 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;