I- the type of IDs of entities
E- the type of entities
public interface RepositoryView<I,E extends Entity<I,?>>
Repository may have a view that provides a different set of entities.
For example, there can be views that represent inactive entities (e.g. archived or deleted).
Repository itself is also a
RepositoryView, which loads only
|Modifier and Type||Method and Description|
Finds an entity with the passed ID.
Returns an iterator over the entities exposed by the view that match the passed filter.
id- the ID of the entity to load
Optional.empty()if there's no entity with such ID