From e91e7e613d41e23110128e597fbcb63c7d6e8104 Mon Sep 17 00:00:00 2001 From: Davide Marcato Date: Tue, 28 Nov 2023 13:42:43 +0100 Subject: [PATCH] Fix repo type --- .../repository/client/IamClientLastUsedRepository.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iam-login-service/src/main/java/it/infn/mw/iam/persistence/repository/client/IamClientLastUsedRepository.java b/iam-login-service/src/main/java/it/infn/mw/iam/persistence/repository/client/IamClientLastUsedRepository.java index ec2756325..03151b7ab 100644 --- a/iam-login-service/src/main/java/it/infn/mw/iam/persistence/repository/client/IamClientLastUsedRepository.java +++ b/iam-login-service/src/main/java/it/infn/mw/iam/persistence/repository/client/IamClientLastUsedRepository.java @@ -20,21 +20,21 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; -import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.transaction.annotation.Transactional; import org.springframework.data.repository.query.Param; import it.infn.mw.iam.persistence.model.IamClientLastUsed; public interface IamClientLastUsedRepository - extends CrudRepository, JpaSpecificationExecutor { + extends PagingAndSortingRepository, + JpaSpecificationExecutor { - Page findByClientId(Long clientId, Pageable pageable); - Page findAll(Pageable pageable); + Page findByClientId(Long clientId, Pageable pageable); @Transactional @Modifying @Query("UPDATE IamClientLastUsed iclu SET iclu.lastUsed = CURRENT_DATE WHERE iclu.clientId = :clientId") void updateLastUsedByClientId(@Param("clientId") Long clientId); -} \ No newline at end of file +}