Package dev.akif.crud.simpler
Class SimplerService<I extends Serializable,E extends SimplerEntity<I,E>,M extends SimplerModel<I,E,M>,R extends SimplerRepository<I,E>>
java.lang.Object
dev.akif.crud.CRUDService<I,M,E,M,M,R>
dev.akif.crud.simpler.SimplerService<I,E,M,R>
- Type Parameters:
I- Id type of the dataE- Entity type of the data which is aSimplerEntityM- Model type of the data which is aSimplerModelR- Repository type of the data which is aSimplerRepository
public abstract class SimplerService<I extends Serializable,E extends SimplerEntity<I,E>,M extends SimplerModel<I,E,M>,R extends SimplerRepository<I,E>>
extends CRUDService<I,M,E,M,M,R>
Simpler variant of
CRUDService where create/update models are just models directly
This is meant to be extended from a Service class.
-
Field Summary
Fields inherited from class dev.akif.crud.CRUDService
clock, repository, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSimplerService(String type, Clock clock, R repository) Constructor to provide type name and dependencies to this service -
Method Summary
-
Constructor Details
-
SimplerService
Constructor to provide type name and dependencies to this service- Parameters:
type- Type name of the data this service managesclock-Clockdependency of this servicerepository- Repository dependency of this service
-