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