Interface MandantenRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Mandant,​String>, org.springframework.data.repository.Repository<Mandant,​String>

    public interface MandantenRepository
    extends org.springframework.data.repository.CrudRepository<Mandant,​String>
    Repository-Pattern fuer Mandant.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<Mandant> findAll()
      Liefert eine Liste mit allen Mandanten.
      Optional<Mandant> findByName​(String name)
      Sucht einen Mandanten anhand seines Namens.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findAllById, findById, save, saveAll
    • Method Detail

      • findByName

        Optional<Mandant> findByName​(String name)
        Sucht einen Mandanten anhand seines Namens.
        Parameters:
        name - Name des Mandanten als String.
        Returns:
        - da es sich hier um ein Interface handelt.
      • findAll

        List<Mandant> findAll()
        Liefert eine Liste mit allen Mandanten. Ueberschreibt findAll aus dem Framework, liefert sonst Iterable.
        Specified by:
        findAll in interface org.springframework.data.repository.CrudRepository<Mandant,​String>
        Returns:
        - da es sich hier um ein Interface handelt.