@Repository public interface PaymentRepository extends org.springframework.data.jpa.repository.JpaRepository<Payment,Long>
| Modifier and Type | Method and Description |
|---|---|
Collection<Payment> |
findByPsu(Psu owner) |
List<Payment> |
findByServiceSessionIdOrderByModifiedAtDesc(UUID serviceSessionId) |
int |
setConfirmed(UUID serviceSessionId) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAllList<Payment> findByServiceSessionIdOrderByModifiedAtDesc(UUID serviceSessionId)
Collection<Payment> findByPsu(Psu owner)
@Modifying
@Transactional
@Query(value="UPDATE Payment p SET p.confirmed = true WHERE p.serviceSession.id = :serviceSessionId")
int setConfirmed(@Param(value="serviceSessionId")
UUID serviceSessionId)
Copyright © 2020. All rights reserved.