Interface ReservationRepository

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

public interface ReservationRepository extends org.springframework.data.jpa.repository.JpaRepository<Reservation,Long>
A ReservationRepository.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    findByReservedBy(String reservationId)
     

    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

    • findByReservedBy

      List<Reservation> findByReservedBy(String reservationId)
    • deleteFor

      @Modifying @Query("delete from Reservation r where r.packagingUnit in :pus") void deleteFor(@Param("pus") List<PackagingUnit> pus)
    • deleteByPk

      @Modifying @Query("delete from Reservation r where r.pk = :pk") void deleteByPk(@Param("pk") Long pk)