Interface HolidayRepository

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

@Repository public interface HolidayRepository extends org.springframework.data.jpa.repository.JpaRepository<Holiday,Long>
Holiday repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    Find holiday by day.

    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

    • findByDay

      Optional<Holiday> findByDay(String day)
      Find holiday by day.
      Parameters:
      day - in format dd/MM/yyyy
      Returns:
      Holiday if exist