package tay;

import io.dropwizard.Configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.hibernate.validator.constraints.*;
import javax.validation.constraints.*;

public class tayConfiguration extends Configuration {
    // TODO: implement service configuration

    @NotEmpty
    private String dateFormat;

    public String getDateFormat() {
        return dateFormat;
    }
}

@@ -97,16 +97,59 @@
 operty;%0A
+import io.dropwizard.db.DataSourceFactory;%0A
 import o
@@ -185,16 +185,48 @@
 aints.*;
+%0A%0Aimport javax.validation.Valid;
 %0Aimport 
@@ -316,98 +316,278 @@
 n %7B%0A
+%0A
     
-// TODO: implement service configuration%0A%0A    @NotEmpty%0A    private String dateFormat;
+@NotEmpty%0A    private String dateFormat;%0A%0A    @NotNull%0A    @Valid%0A    private DataSourceFactory dataSourceFactory = new DataSourceFactory();%0A%0A    @JsonProperty(%22database%22)%0A    public DataSourceFactory getDataSourceFactory() %7B%0A        return dataSourceFactory;%0A    %7D
 %0A%0A  

change config file