Interface CreationService<T,K>

Type Parameters:
T - Represents the entity type
K - Represents the key type
All Known Subinterfaces:
CrudService<T,K>

public interface CreationService<T,K>
Specifies the contract of a generic service that is responsible for saving new entities to the database.
Author:
mlopez
  • Method Summary

    Modifier and Type
    Method
    Description
    save(T entity)
    Saves a new entity to a database.
  • Method Details

    • save

      K save(T entity)
      Saves a new entity to a database.
      Parameters:
      entity - the created entity to be saved
      Returns:
      an instance of key of entity this is saved to the database