Interface Repository<T extends Identifiable>
- All Known Subinterfaces:
PlayerProfileRepository, TeamRepository
- All Known Implementing Classes:
InMemoryPlayerProfileRepository, InMemoryTeamRepository, SqlitePlayerProfileRepository, SqliteTeamRepository
public interface Repository<T extends Identifiable>
Contrat CRUD générique pour tout aggregate
Identifiable. Permet de
brancher différents backends (in-memory, SQLite, …) sans toucher au code
service.
Implémentations CR-Core par défaut :
InMemoryTeamRepository/SqliteTeamRepositoryInMemoryPlayerProfileRepository/SqlitePlayerProfileRepository
-
Method Summary
-
Method Details
-
save
-
findById
-
findAll
Collection<T> findAll() -
delete
-