Class SimplestService<I extends Serializable,E extends SimplestEntity<I,E>,R extends SimplestRepository<I,E>>

java.lang.Object
dev.akif.crud.CRUDService<I,E,E,E,E,R>
dev.akif.crud.simplest.SimplestService<I,E,R>
Type Parameters:
I - Id type of the data
E - Entity type of the data which is a SimplestEntity
R - Repository type of the data which is a SimplestRepository

public abstract class SimplestService<I extends Serializable,E extends SimplestEntity<I,E>,R extends SimplestRepository<I,E>> extends CRUDService<I,E,E,E,E,R>
The simplest variant of CRUDService where models are entities directly

This is meant to be extended from a Service class.

  • Constructor Details

    • SimplestService

      protected SimplestService(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
  • Method Details