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