Column

@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Column(val name: String = "", val sqlType: KClass<out SqlType<*>> = Nothing::class, val propertyName: String = "")(source)

Specify the mapped column for an entity property. If no @Column annotation is specified, the default values apply.

Properties

Link copied to clipboard

The name of the column.

Link copied to clipboard

The name of the corresponding column property in the generated table class.

Link copied to clipboard
val sqlType: KClass<out SqlType<*>>

The SQL type of the column.