Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,8 @@ public DomaConfigBuilder entityListenerProvider(
this.entityListenerProvider = entityListenerProvider;
return this;
}

public DomaConfig build() {
return new DomaConfig(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ public void setExceptionTranslationEnabled(boolean exceptionTranslationEnabled)
this.exceptionTranslationEnabled = exceptionTranslationEnabled;
}

public DomaConfigBuilder initializeDomaConfigBuilder() {
return new DomaConfigBuilder()
.dialect(dialect.create())
.sqlFileRepository(sqlFileRepository.create())
.naming(naming.naming());
}

public static enum DialectType {
STANDARD(StandardDialect::new), SQLITE(SqliteDialect::new), DB2(Db2Dialect::new), MSSQL(
MssqlDialect::new), MSSQL2008(Mssql2008Dialect::new), MYSQL(
Expand Down