Simpler Service
abstract class SimplerService<I : Serializable, E : SimplerEntity<I, E>, M : SimplerModel<I>, out Mapper : SimplerMapper<I, E, M>>(typeName: String, clock: Clock, repository: SimplerRepository<I, E>, mapper: Mapper) : CRUDService<I, E, M, M, M, Mapper> (source)
Simpler variant of CRUDService where create/update models are just models
This is meant to be extended from a @Service class.
Parameters
I
Id type of the data
M
Model type of the data which is a SimplerModel
E
Entity type of the data which is a SimplerEntity
Mapper
Mapper of the data which is a SimplerMapper
Constructors
Link copied to clipboard
fun <I : Serializable, E : SimplerEntity<I, E>, out Mapper : SimplerMapper<I, E, M>> SimplerService(typeName: String, clock: Clock, repository: SimplerRepository<I, E>, mapper: Mapper)