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 data
E - Entity type of the data which is a SimplerEntity
M - Model type of the data which is a SimplerModel
R - Repository type of the data which is a SimplerRepository

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.

  • Constructor Details

    • SimplerService

      protected SimplerService(String type, Clock clock, R repository)
      Constructor to provide type name and dependencies to this service
      Parameters:
      type - Type name of the data this service manages
      clock - Clock dependency of this service
      repository - Repository dependency of this service