Interface BasketInvoicePaymentsRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<BasketInvoicePaymentEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<BasketInvoicePaymentEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<BasketInvoicePaymentEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<BasketInvoicePaymentEntity>
,org.springframework.data.repository.Repository<BasketInvoicePaymentEntity,
Long>
@Repository
public interface BasketInvoicePaymentsRepository
extends org.springframework.data.jpa.repository.JpaRepository<BasketInvoicePaymentEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByInvoiceId
(Long invoiceId) findAllByInvoiceId
(Long invoiceId) org.springframework.data.domain.Page<BasketInvoicePaymentEntity>
findAllByInvoiceId
(Long invoiceId, org.springframework.data.domain.Pageable pageable) findAllByInvoiceIdAndConfirmed
(Long invoiceId, Boolean confirmed) findAllByInvoiceIdAndConfirmedTrue
(Long invoiceId) 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, 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
-
findAllByInvoiceId
org.springframework.data.domain.Page<BasketInvoicePaymentEntity> findAllByInvoiceId(Long invoiceId, org.springframework.data.domain.Pageable pageable) -
findAllByInvoiceIdAndConfirmedTrue
-
findAllByInvoiceId
-
findAllByInvoiceIdAndConfirmed
-
deleteByInvoiceId
@Transactional @Modifying @Query("DELETE FROM BasketInvoicePaymentEntity bipe WHERE bipe.invoiceId = :invoiceId") void deleteByInvoiceId(@Param("invoiceId") Long invoiceId)
-