Package dev.akif.crud.simple
Class SimpleService<I extends Serializable,E extends SimpleEntity<I,E>,M extends SimpleModel<I,E>,R extends SimpleRepository<I,E>>
java.lang.Object
dev.akif.crud.CRUDService<I,M,E,M,M,R>
dev.akif.crud.simple.SimpleService<I,E,M,R>
- Type Parameters:
I- Id type of the dataE- Entity type of the data which is aSimpleEntityM- Model type of the data which is aSimpleModelR- Repository type of the data which is aSimpleRepository
public abstract class SimpleService<I extends Serializable,E extends SimpleEntity<I,E>,M extends SimpleModel<I,E>,R extends SimpleRepository<I,E>>
extends CRUDService<I,M,E,M,M,R>
Simple 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
ConstructorsModifierConstructorDescriptionprotectedSimpleService(String type, Clock clock, R repository) Constructor to provide type name and dependencies to this service -
Method Summary
-
Constructor Details
-
SimpleService
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
-