Interface Repository<T,ID extends Serializable>

Type Parameters:
T - the type of objects managed by the repository
ID - the type used to identify the objects
All Known Subinterfaces:
JpaStoredEventRepository, StoredEventRepository

public interface Repository<T,ID extends Serializable>
A mechanism for encapsulating storage, retrieval, and search behavior which emulates a collection of objects.
Author:
RealLifeDeveloper
  • Method Summary

    Modifier and Type
    Method
    Description
    Gives the entity with the given id.
  • Method Details

    • findById

      Optional<T> findById(ID id)
      Gives the entity with the given id.
      Parameters:
      id - the id of the entity to find
      Returns:
      the entity with the given id, or null if no such entity could be found