Interface PizzaRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Pizza,Integer>, org.springframework.data.jpa.repository.JpaRepository<Pizza,Integer>, org.springframework.data.repository.PagingAndSortingRepository<Pizza,Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Pizza>, org.springframework.data.repository.Repository<Pizza,Integer>

@Repository public interface PizzaRepository extends org.springframework.data.jpa.repository.JpaRepository<Pizza,Integer>
Repository for Entity Base
  • Method Summary

    Modifier and Type
    Method
    Description
    findByCafes(Cafe cafe, org.springframework.data.domain.Sort name)
    Search for pizza by entity Cafe
    Search pizza by name
    Search for pizza by entity Person
    findDistinctPizzaByBase_SizeLikeIgnoreCase(String size, org.springframework.data.domain.Sort name)
    Search for pizza by field size in entity base

    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.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findDistinctPizzaByBase_SizeLikeIgnoreCase

      List<Pizza> findDistinctPizzaByBase_SizeLikeIgnoreCase(String size, org.springframework.data.domain.Sort name)
      Search for pizza by field size in entity base
      Parameters:
      size - Size
      name - the list will be sorted by pizza name
      Returns:
      Sorted by name, the list of pizzas that have the size 'size'
    • findByPersons

      List<Pizza> findByPersons(Person person)
      Search for pizza by entity Person
      Parameters:
      person - Entity Person
      Returns:
      list of pizzas that are associated with the user
    • findByName

      Optional<Pizza> findByName(String name)
      Search pizza by name
      Parameters:
      name -
      Returns:
      An object that may contain a Pizza or be empty
    • findByCafes

      List<Pizza> findByCafes(Cafe cafe, org.springframework.data.domain.Sort name)
      Search for pizza by entity Cafe
      Parameters:
      cafe -
      name - The list will be sorted by name
      Returns:
      list of pizzas that are associated with the cafe