Interface ReservationObjectPriceRepository

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

@Repository public interface ReservationObjectPriceRepository extends DomainIdRepository<ReservationObjectPriceEntity,Long>
  • Method Details

    • findAllByObjectIdAndDomainId

      List<ReservationObjectPriceEntity> findAllByObjectIdAndDomainId(Long objectId, Integer domainId)
    • findAllByObjectIdAndDomainIdAndDateFromLessThanEqualAndDateToGreaterThanEqual

      List<ReservationObjectPriceEntity> findAllByObjectIdAndDomainIdAndDateFromLessThanEqualAndDateToGreaterThanEqual(Long objectId, Integer domainId, Date dateFrom, Date dateTo)
    • deleteAllByObjectIdAndDomainId

      @Transactional @Modifying @Query("DELETE FROM ReservationObjectTimesEntity rote WHERE rote.objectId = :objectId AND rote.domainId = :domainId") void deleteAllByObjectIdAndDomainId(@Param("objectId") Long objectId, @Param("domainId") Integer domainId)