bindTo

inline fun <C : Any> Column<C>.bindTo(selector: (E) -> C?): Column<C>(source)

Bind the column to nested properties, e.g. employee.manager.department.id.

Note: Since Column is immutable, this function will create a new Column instance and replace the origin registered one.

Return

the new Column instance.

Parameters

selector

a lambda in which we should return the property we want to bind. For example: val name = varchar("name").bindTo { it.name }.