package org.synyx.urlaubsverwaltung.application;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("uv.application")
public class ApplicationProperties {

    /**
     * Checks remind date about waiting applications by default every day at 07:00 am
     */
    private String reminderNotificationCron = "0 0 7 * * *";

    public String getReminderNotificationCron() {
        return reminderNotificationCron;
    }

    public void setReminderNotificationCron(String reminderNotificationCron) {
        this.reminderNotificationCron = reminderNotificationCron;
    }
}


@@ -167,16 +167,123 @@
 mponent;
+%0Aimport org.springframework.validation.annotation.Validated;%0A%0Aimport javax.validation.constraints.NotEmpty;
 %0A%0A@Compo
@@ -330,16 +330,27 @@
 ation%22)%0A
+@Validated%0A
 public c
@@ -477,16 +477,16 @@
  am%0A
-
      */%0A
     
@@ -481,16 +481,30 @@
      */%0A
+    @NotEmpty%0A
     priv

Add bean validation for uv.application.reminderNotificationCron