CRUDService

fun <I : Serializable, E : CRUDEntity<I>, out Mapper : CRUDMapper<I, E, M, CM, UM>> CRUDService(typeName: String, instantProvider: InstantProvider, crudRepository: CRUDRepository<I, E>, mapper: Mapper)(source)

Parameters

I

Id type of the data

M

Model type of the data which is a CRUDModel

E

Entity type of the data which is a CRUDEntity

CM

Create model type of the data which is a CRUDCreateModel

UM

Update model type of the data which is a CRUDUpdateModel

R

Repository type of the data which is a CRUDRepository

Mapper

Mapper type of the data which is a CRUDMapper

crudRepository

Repository dependency of this service which is a CRUDRepository as a base type, private by choice because there is repository to access it with the more specific type instead of the base type