Package org.salespointframework.core
Interface SalespointRepository<T,ID extends SalespointIdentifier>
- All Superinterfaces:
CrudRepository<T,ID>
,Repository<T,ID>
- All Known Subinterfaces:
Catalog<T>
,MultiInventory<T>
,UniqueInventory<T>
@NoRepositoryBean public interface SalespointRepository<T,ID extends SalespointIdentifier> extends CrudRepository<T,ID>
Base interface for repositories. Declared explicitly to keep a single point of dependency to Spring Data as well as
override
findAll()
to return a Streamable
out of the box.- Since:
- 7.3
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and Type Method Description Streamable<T>
findAll()
Re-declaration ofCrudRepository.findAll()
to returnStreamable
instead ofIterable
for easier composition.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAllById, findById, save, saveAll
-
Method Details
-
findAll
Streamable<T> findAll()Re-declaration ofCrudRepository.findAll()
to returnStreamable
instead ofIterable
for easier composition.- Specified by:
findAll
in interfaceCrudRepository<T,ID extends SalespointIdentifier>
- Returns:
- all aggregates managed by the repository.
-