#1625 - Populate UUID via database column default value / impossible to disable automatic generation for @Id fields of type UUID.

This commit is contained in:
rob bygrave
2019-02-02 20:16:05 +13:00
parent b814ca6e81
commit 5cef1ad017
2 changed files with 7 additions and 1 deletions
@@ -15,6 +15,7 @@ class ReadAnnotationConfig {
private final boolean eagerFetchLobs;
private final boolean javaxValidationAnnotations;
private final boolean jacksonAnnotations;
private final boolean idGeneratorAutomatic;
ReadAnnotationConfig(GeneratedPropertyFactory generatedPropFactory, String asOfViewSuffix, String versionsBetweenSuffix, ServerConfig serverConfig) {
@@ -23,6 +24,7 @@ class ReadAnnotationConfig {
this.versionsBetweenSuffix = versionsBetweenSuffix;
this.disableL2Cache = serverConfig.isDisableL2Cache();
this.eagerFetchLobs = serverConfig.isEagerFetchLobs();
this.idGeneratorAutomatic = serverConfig.isIdGeneratorAutomatic();
this.javaxValidationAnnotations = generatedPropFactory.getClassLoadConfig().isJavaxValidationAnnotationsPresent();
this.jacksonAnnotations = generatedPropFactory.getClassLoadConfig().isJacksonAnnotationsPresent();
@@ -48,6 +50,10 @@ class ReadAnnotationConfig {
return eagerFetchLobs;
}
public boolean isIdGeneratorAutomatic() {
return idGeneratorAutomatic;
}
boolean isJavaxValidationAnnotations() {
return javaxValidationAnnotations;
}