Change users and user roles repositories to paging and sorting repositories
parent
91a3961a08
commit
188d45cd9a
|
@ -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<User, Long> {
|
||||
public interface UserRolesJpaRepository extends PagingAndSortingRepository<User, Long> {
|
||||
List<User> findByUsername(@Param("username") String username);
|
||||
}
|
||||
|
|
|
@ -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<UserRole, Long> {
|
||||
public interface UsersJpaRepository extends PagingAndSortingRepository<UserRole, Long> {
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue