From babbfc55e4a565006a43864885127546cb1ce80a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 17 Oct 2022 15:31:27 +0600 Subject: [PATCH] update default of AbstractExposedWriteCRUDRepo --- .../micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt index 50530bfd24f..289adb04f8b 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt @@ -44,7 +44,7 @@ abstract class AbstractExposedWriteCRUDRepo( * * @return In case when id for the model has been created new [IdType] should be returned */ - protected abstract fun createAndInsertId(value: InputValueType, it: InsertStatement): IdType? + protected open fun createAndInsertId(value: InputValueType, it: InsertStatement): IdType? = null protected open fun insert(value: InputValueType, it: InsertStatement) { val id = createAndInsertId(value, it)