From 188d45cd9a03a728c25b23f35089af4bc1ca46d6 Mon Sep 17 00:00:00 2001 From: esensar Date: Thu, 23 Mar 2017 22:11:43 +0100 Subject: [PATCH] Change users and user roles repositories to paging and sorting repositories --- .../java/ba/steleks/repository/UserRolesJpaRepository.java | 4 ++-- .../main/java/ba/steleks/repository/UsersJpaRepository.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/users/src/main/java/ba/steleks/repository/UserRolesJpaRepository.java b/users/src/main/java/ba/steleks/repository/UserRolesJpaRepository.java index 24552f7..0ef2ebe 100644 --- a/users/src/main/java/ba/steleks/repository/UserRolesJpaRepository.java +++ b/users/src/main/java/ba/steleks/repository/UserRolesJpaRepository.java @@ -5,12 +5,12 @@ package ba.steleks.repository; */ import ba.steleks.repository.model.User; -import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.repository.query.Param; import java.util.List; -public interface UserRolesJpaRepository extends CrudRepository { +public interface UserRolesJpaRepository extends PagingAndSortingRepository { List findByUsername(@Param("username") String username); } diff --git a/users/src/main/java/ba/steleks/repository/UsersJpaRepository.java b/users/src/main/java/ba/steleks/repository/UsersJpaRepository.java index 0f00297..1114ca8 100644 --- a/users/src/main/java/ba/steleks/repository/UsersJpaRepository.java +++ b/users/src/main/java/ba/steleks/repository/UsersJpaRepository.java @@ -5,8 +5,8 @@ package ba.steleks.repository; */ import ba.steleks.repository.model.UserRole; -import org.springframework.data.repository.CrudRepository; +import org.springframework.data.repository.PagingAndSortingRepository; -public interface UsersJpaRepository extends CrudRepository { +public interface UsersJpaRepository extends PagingAndSortingRepository { }