Simple Service
abstract class SimpleService<I : Serializable, E : SimpleEntity<I>, M : SimpleModel<I>, D : SimpleDTO<I>, out R : SimpleRepository<I, E>, out Mapper : SimpleMapper<I, E, M, D>>(typeName: String, instantProvider: InstantProvider, crudRepository: CRUDRepository<I, E>, mapper: Mapper) : CRUDService<I, E, M, M, M, R, Mapper> (source)
Simple variant of CRUDService where create/update models are just models 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 SimpleEntity
M
Model type of the data which is a SimpleModel
D
DTO type of the data which is a SimpleDTO
R
Repository type of the data which is a SimpleRepository
Mapper
Mapper type of the data which is a SimpleMapper
Constructors
Link copied to clipboard
fun <I : Serializable, E : SimpleEntity<I>, out Mapper : SimpleMapper<I, E, M, D>> SimpleService(typeName: String, instantProvider: InstantProvider, crudRepository: CRUDRepository<I, E>, mapper: Mapper)