# DatabaseInitializer

open class DatabaseInitializer(applicationContext: ApplicationContext, excludedPackages: List<String>) : ApplicationRunner, Ordered

Base class responsible for the automatic creation of a database schema, using the results of discoverExposedTables.

If more than just table creation is required, a derived class can be implemented to override the transactional function, run, so that other schema operations can be performed when initialized.

## Constructors

DatabaseInitializer
Link copied to clipboard
constructor(applicationContext: ApplicationContext, excludedPackages: List<String>)

## Types

Companion
Link copied to clipboard
object Companion

## Functions

getOrder
Link copied to clipboard
open override fun getOrder(): Int
run
Link copied to clipboard
@Transactional
open override fun run(args: ApplicationArguments?)