Alias of Employee #424
-
Hi, the fun test() {
val aliased = Employees.aliased("e") // A result type of Table<Employee>
var employeeName = Employees.name // OK
var aliasedName = aliased.name // Compilation error: Unresolved reference !!!
} The object Employees : Table<Employee>("employee") {
val id = long("id").primaryKey().bindTo { it.id }
val name = varchar("name").bindTo { it.name }
} I expected the usage described here in this tutorial: |
Beta Was this translation helpful? Give feedback.
Answered by
vincentlauvlwj
Aug 22, 2022
Replies: 1 comment
-
See the doc https://www.ktorm.org/en/joining.html#Self-Joining-amp-Table-Aliases |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pponec
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See the doc https://www.ktorm.org/en/joining.html#Self-Joining-amp-Table-Aliases