tapac
02/26/2018, 1:02 PMinsertAndGetId
When you write insert[id]
you try to get value related to "expression" from resultSet. It can be null if, for example, it wasn't inserted, that's why column type (not-nullable) doesn't make sense.ziad
03/02/2018, 4:31 PMobject StarWarsFilms : Table() {
val id: Column<Int> = integer("id").autoIncrement().primaryKey()
}
this doesn’t support insertAndGetId
object StarWarsFilms : IntIdTable() {
}
this does