Package org.salespointframework.core
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 returnStreamable
instead ofIterable
for easier composition.findAllById
(Iterable<ID> ids) <S extends T>
Streamable<S> Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
-
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 org.jmolecules.ddd.types.Identifier> - Returns:
- all aggregates managed by the repository.
-
findAll
- Specified by:
findAll
in interfacePagingAndSortingRepository<T,
ID extends org.jmolecules.ddd.types.Identifier>
-
findAllById
- Specified by:
findAllById
in interfaceCrudRepository<T,
ID extends org.jmolecules.ddd.types.Identifier>
-
saveAll
- Specified by:
saveAll
in interfaceCrudRepository<T,
ID extends org.jmolecules.ddd.types.Identifier>
-