Interface ReservationRepository

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

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

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

    Methods inherited from interface org.springframework.data.repository.CrudRepository Link icon

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository Link icon

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

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository Link icon

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository Link icon

    findAll

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

    findAll

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

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

    • findByReservedBy Link icon

      List<Reservation> findByReservedBy(String reservationId)
    • deleteFor Link icon

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

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