Simpler Controller
abstract class SimplerController<I : Serializable, E : SimplerEntity<I, E>, M : SimplerModel<I>, out Mapper : SimplerMapper<I, E, M>, out S : SimplerService<I, E, M, Mapper>>(typeName: String, service: S, mapper: Mapper) : CRUDController<I, E, M, M, M, M, M, M, Mapper, Mapper, S> (source)
Simpler variant of CRUDController where create/update models and DTOs are just models
This is meant to be extended from a @RestController class, ideally also with a @RequestMapping with some path prefix for the endpoints.
Parameters
I
Id type of the data
E
Entity type of the data which is a SimplerEntity
M
Model type of the data which is a SimplerModel
Mapper
Mapper type of the data which is a SimplerMapper
S
Service type of the data which is a SimplerService
Constructors
Link copied to clipboard
fun <out Mapper : SimplerMapper<I, E, M>, out S : SimplerService<I, E, M, Mapper>> SimplerController(typeName: String, service: S, mapper: Mapper)