Interface SalespointRepository<T, ID extends org.jmolecules.ddd.types.Identifier>
- All Superinterfaces:
CrudRepository<T,ID>, PagingAndSortingRepository<T, ID>, Repository<T, ID>
- All Known Subinterfaces:
Catalog<T>, MultiInventory<T>, UniqueInventory<T>
@NoRepositoryBean
public interface SalespointRepository<T, ID extends org.jmolecules.ddd.types.Identifier>
extends CrudRepository<T,ID>, PagingAndSortingRepository<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 TypeMethodDescriptionfindAll()Re-declaration ofCrudRepository.findAll()to returnStreamableinstead ofIterablefor easier composition.findAllById(Iterable<ID> ids) <S extends T>
Streamable<S> Methods inherited from interface CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface PagingAndSortingRepository
findAll
-
Method Details
-
findAll
Streamable<T> findAll()Re-declaration ofCrudRepository.findAll()to returnStreamableinstead ofIterablefor easier composition.- Specified by:
findAllin interfaceCrudRepository<T, ID extends org.jmolecules.ddd.types.Identifier>- Returns:
- all aggregates managed by the repository.
-
findAll
- Specified by:
findAllin interfacePagingAndSortingRepository<T, ID extends org.jmolecules.ddd.types.Identifier>
-
findAllById
- Specified by:
findAllByIdin interfaceCrudRepository<T, ID extends org.jmolecules.ddd.types.Identifier>
-
saveAll
- Specified by:
saveAllin interfaceCrudRepository<T, ID extends org.jmolecules.ddd.types.Identifier>
-