Package org.dalesbred.integration.spring
Class DalesbredConfigurationSupport
java.lang.Object
org.dalesbred.integration.spring.DalesbredConfigurationSupport
Abstract base class for Spring Configuration to provide Dalesbred integration with Spring services.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondalesbredDatabase
(DataSource dataSource, PlatformTransactionManager transactionManager) protected @Nullable Dialect
dialect()
Subclasses can override this to return theDialect
to use.protected void
registerTypeConversions
(@NotNull TypeConversionRegistry registry) Can be overridden by subclasses to register custom type conversions.protected void
setupDatabase
(@NotNull Database db) Can be overridden by subclasses to perform custom database setup.
-
Constructor Details
-
DalesbredConfigurationSupport
public DalesbredConfigurationSupport()
-
-
Method Details
-
dalesbredDatabase
@Bean public Database dalesbredDatabase(DataSource dataSource, PlatformTransactionManager transactionManager) -
registerTypeConversions
Can be overridden by subclasses to register custom type conversions. -
setupDatabase
Can be overridden by subclasses to perform custom database setup. -
dialect
Subclasses can override this to return theDialect
to use. By defaultnull
is returned, which means that dialect is auto-detected.
-