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

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

Types

Link copied to clipboard
object Companion

Functions

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