From 781ec85851b20368581e7e5d3f107f0e08570ec0 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Mon, 25 May 2020 14:11:34 +0200 Subject: [PATCH] Implement to query accounts for a given user --- .../hft/geotime/repositories/TimetrackAccountRepository.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/src/main/java/de/hft/geotime/repositories/TimetrackAccountRepository.java b/backend/src/main/java/de/hft/geotime/repositories/TimetrackAccountRepository.java index df69761..d214778 100644 --- a/backend/src/main/java/de/hft/geotime/repositories/TimetrackAccountRepository.java +++ b/backend/src/main/java/de/hft/geotime/repositories/TimetrackAccountRepository.java @@ -1,6 +1,8 @@ package de.hft.geotime.repositories; import de.hft.geotime.entities.TimetrackAccount; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.data.rest.core.annotation.RestResource; @@ -15,4 +17,7 @@ public interface TimetrackAccountRepository extends PagingAndSortingRepository findAllByUser_Username(String username, Pageable pageable); + }