From 1d74e253330fe4e04db523cc504ce64cb3619304 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 7 Jun 2020 11:39:05 +0200 Subject: [PATCH] =?utf8?q?streams=20-=20=C3=9Cbungen=20-=20Microservices?= =?utf8?q?=20-=20Schritt=2003=20--=20Validierung=20in=20take-order-service?= =?utf8?q?=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Validierung der übergebenen Zahlen entfernt * Dies soll ja jetzt iin einem separatem Microservice umgesetzt werden --- .../java/de/trion/microservices/takeorder/OrderBean.java | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.20.1