name

The name of the column.

If not specified, the name will be generated by a naming strategy. This naming strategy can be configured by KSP option ktorm.dbNamingStrategy, which accepts the following values:

  • lower-snake-case (default): generate names in lower snake-case, the names are concatenation of the current property's name and the referenced table's primary key name. For example, a property user referencing a table that has a primary key named id will get a name user_id.

  • upper-snake-case: generate names in upper snake-case, the names are concatenation of the current property's name and the referenced table's primary key name. For example, a property user referencing a table that has a primary key named id will get a name USER_ID.

  • Class name of a custom naming strategy, which should be an implementation of org.ktorm.ksp.spi.DatabaseNamingStrategy.