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 data
E - Entity type of the data which is a SimpleEntity
M - Model type of the data which is a SimpleModel
R - Repository type of the data which is a SimpleRepository

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.

  • Constructor Details

    • SimpleService

      protected SimpleService(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