From 3a174b64c12d9214c9399989c1ae241ffe8f8e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20S=C3=A4ume?= Date: Wed, 25 Sep 2024 11:40:45 +0200 Subject: [PATCH] PMT-32: Add missing fields to Employee Entity --- src/main/java/de/hmmh/pmt/db/Project.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/de/hmmh/pmt/db/Project.java b/src/main/java/de/hmmh/pmt/db/Project.java index fefdc7c..ad53770 100644 --- a/src/main/java/de/hmmh/pmt/db/Project.java +++ b/src/main/java/de/hmmh/pmt/db/Project.java @@ -26,6 +26,16 @@ public final class Project { @Size(min = 3, max = 64) private String name; + @NotBlank + @Size(min = 10) + private String goal; + + @NotNull + private Long customerId; + + @NotNull + private Long administratorId; // Is an Employee + @NotNull private LocalDateTime start;