Back to Exposed

DatabaseInitializer

docs/api/exposed-spring-boot4-starter/org.jetbrains.exposed.v1.spring.boot4/-database-initializer/index.html

1.2.01.7 KB
Original Source

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.

Members

Constructors

DatabaseInitializer

Link copied to clipboard

constructor(applicationContext: ApplicationContext, excludedPackages: List<String>)

Types

Companion

Link copied to clipboard

object Companion

Properties

order

Link copied to clipboard

open override val order: Int

Functions

getOrder

Link copied to clipboard

open override fun getOrder(): Int

run

Link copied to clipboard

@Transactional

open override fun run(args: ApplicationArguments)

Generated by Dokka © 2026 Copyright