mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-07-16 15:31:28 +00:00
update default of AbstractExposedWriteCRUDRepo
This commit is contained in:
2
repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt
2
repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt
@ -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)
|
||||||
|
Reference in New Issue
Block a user