Interface CreationService<T,K>
- Type Parameters:
T- Represents the entity typeK- 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
-
Method Details
-
save
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
-