https://kotlinlang.org logo
#exposed
Title
# exposed
m

Mihael

09/22/2020, 12:48 PM
Is it possible for me to somehow make two Tables with the same structure without copying the code?
t

tapac

09/22/2020, 12:55 PM
Copy code
open class BaseFileHashTable(name: String) : IntIdTable(name) {
        val rowIdTable = integer("rowId")
        val rowHash = varchar("rowHash", 255)
    } 

object Old : BaseFileHashTable("old_hash")

object New : BaseFileHashTable("new_hash")
👆 1
m

Mihael

09/22/2020, 1:03 PM
ohhh Thank you very very much
i completely forgot about open class