ColumnMetadata

data class ColumnMetadata(val entityProperty: KSPropertyDeclaration, val table: TableMetadata, val name: String, val isPrimaryKey: Boolean, val sqlType: KSType, val isReference: Boolean, val referenceTable: TableMetadata?, val columnPropertyName: String, val refTablePropertyName: String?)(source)

Column definition metadata.

Constructors

Link copied to clipboard
constructor(entityProperty: KSPropertyDeclaration, table: TableMetadata, name: String, isPrimaryKey: Boolean, sqlType: KSType, isReference: Boolean, referenceTable: TableMetadata?, columnPropertyName: String, refTablePropertyName: String?)

Properties

Link copied to clipboard

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

Link copied to clipboard
val entityProperty: KSPropertyDeclaration

The annotated entity property of the column.

Link copied to clipboard

Check if the column is a primary key.

Link copied to clipboard

Check if the column is a reference column.

Link copied to clipboard

The name of the column.

Link copied to clipboard

The referenced table of the column.

Link copied to clipboard

The name of the corresponding referenced table property in the Refs wrapper class.

Link copied to clipboard
val sqlType: KSType

The SQL type of the column.

Link copied to clipboard

The belonging table.