NEW: flag to control, if javax.validation NotNull annotation should generate a NotNull column or not (#1306)

This commit is contained in:
Roland Praml
2018-03-02 12:02:02 +13:00
committed by Rob Bygrave
parent 94a118d635
commit 18ca3403ac
3 changed files with 39 additions and 0 deletions
@@ -60,6 +60,8 @@ public class DeployUtil {
private final Encryptor bytesEncryptor;
private final boolean useJavaxValidationNotNull;
public DeployUtil(TypeManager typeMgr, ServerConfig serverConfig) {
this.typeManager = typeMgr;
@@ -70,6 +72,7 @@ public class DeployUtil {
Encryptor be = serverConfig.getEncryptor();
this.bytesEncryptor = be != null ? be : new SimpleAesEncryptor();
this.useJavaxValidationNotNull = serverConfig.isUseJavaxValidationNotNull();
}
public TypeManager getTypeManager() {
@@ -294,4 +297,7 @@ public class DeployUtil {
return type.equals(String.class);
}
public boolean isUseJavaxValidationNotNull() {
return useJavaxValidationNotNull;
}
}