← Back to Stormify Documentation

NamingPolicy

Built-in naming policies for converting Kotlin property/class names to database column/table names.

A naming policy is simply a (String) -> String function. Use one of the presets below (e.g. NamingPolicy.LOWER_CASE_WITH_UNDERSCORES) or assign your own lambda directly:

stormify.namingPolicy = { "tbl_${it.lowercase()}" }

Properties

Link copied to clipboard

Keeps names as-is (camelCase).

Link copied to clipboard

Converts camelCase to lower_case_with_underscores (snake_case). This is the default.

Link copied to clipboard

Converts camelCase to UPPER_CASE_WITH_UNDERSCORES (SCREAMING_SNAKE_CASE).