update default of AbstractExposedWriteCRUDRepo

This commit is contained in:
InsanusMokrassar 2022-10-17 15:31:27 +06:00
parent 2511e18d69
commit babbfc55e4

View File

@ -44,7 +44,7 @@ abstract class AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
* *
* @return In case when id for the model has been created new [IdType] should be returned * @return In case when id for the model has been created new [IdType] should be returned
*/ */
protected abstract fun createAndInsertId(value: InputValueType, it: InsertStatement<Number>): IdType? protected open fun createAndInsertId(value: InputValueType, it: InsertStatement<Number>): IdType? = null
protected open fun insert(value: InputValueType, it: InsertStatement<Number>) { protected open fun insert(value: InputValueType, it: InsertStatement<Number>) {
val id = createAndInsertId(value, it) val id = createAndInsertId(value, it)