Files
vst-string/src/jvmMain/kotlin/nl/astraeus/vst/chip/db/Entity.kt
2024-06-30 20:32:43 +02:00

17 lines
276 B
Kotlin

package nl.astraeus.vst.chip.db
interface Entity {
fun getPK(): Array<Any>
fun setPK(pks: Array<Any>)
}
interface EntityId : Entity {
var id: Long
override fun getPK(): Array<Any> = arrayOf(id)
override fun setPK(pks: Array<Any>) {
id = pks[0] as Long
}
}