Open shi-rudo opened 1 year ago
Arr, I should read further ...
open class Employees(alias: String?) : Table<Nothing>("t_employee", alias) {
companion object : Employees(null)
override fun aliased(alias: String) = Employees(alias)
val id = int("id").primaryKey()
val name = varchar("name")
val job = varchar("job")
val managerId = int("manager_id")
val departmentId = int("department_id")
}
works, you can close
Using Spring-Boot 3.0.6 with Java 17:
The tables taken from the docs :
Note: using concrete classes instead Nothing does not fix the problem
Method based on docs:
The compiler says
Unresolved reference: managerId
🚨Any ideas what I am doing wrong? Thanks a lot!