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 TypeMethodDescriptionvoiddeleteByPk(Long pk) voiddeleteFor(List<PackagingUnit> pus) findByReservedBy(String reservationId) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne 
- 
Method Details
- 
findByReservedBy
 - 
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)  
 -