package org.synyx.urlaubsverwaltung.sicknote;

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

@Component
@ConfigurationProperties("uv.sick-note")
public class SickNoteProperties {

    /**
     * Send notification about the end of sick pay by default every day at 06:00 am
     */
    private String endOfPayNotificationCron = "0 0 6 * * *";

    public String getEndOfPayNotificationCron() {
        return endOfPayNotificationCron;
    }

    public void setEndOfPayNotificationCron(String endOfPayNotificationCron) {
        this.endOfPayNotificationCron = endOfPayNotificationCron;
    }
}


@@ -164,16 +164,123 @@
 mponent;
+%0Aimport org.springframework.validation.annotation.Validated;%0A%0Aimport javax.validation.constraints.NotEmpty;
 %0A%0A@Compo
@@ -325,16 +325,27 @@
 -note%22)%0A
+@Validated%0A
 public c
@@ -467,16 +467,16 @@
  am%0A
-
      */%0A
     
@@ -471,16 +471,30 @@
      */%0A
+    @NotEmpty%0A
     priv

Add bean validation for uv.sick-note.endOfPayNotificationCron