mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-20 07:49:21 +00:00
update default of AbstractExposedWriteCRUDRepo
This commit is contained in:
@@ -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