Simplest Service
abstract class SimplestService<I : Serializable, E : SimplestEntity<I, E>, out Mapper : SimplestMapper<I, E>>(typeName: String, clock: Clock, repository: SimplestRepository<I, E>, mapper: Mapper) : CRUDService<I, E, E, E, E, Mapper> (source)
The simplest variant of CRUDService where models are entities directly
This is meant to be extended from a @Service class.
Parameters
I
Id type of the data
E
Entity type of the data which is a SimplestEntity
Mapper
Mapper type of the data which is a SimplestMapper
Constructors
Link copied to clipboard
fun <I : Serializable, E : SimplestEntity<I, E>, out Mapper : SimplestMapper<I, E>> SimplestService(typeName: String, clock: Clock, repository: SimplestRepository<I, E>, mapper: Mapper)