Make UserRepository from type PagingAndSorting

This commit is contained in:
Marcel Schwarz 2020-04-17 18:44:06 +02:00
parent ce81ff07ba
commit b40d87375a

View File

@ -1,6 +1,14 @@
package de.hft.geotime.user;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import javax.websocket.server.PathParam;
import java.util.List;
@RepositoryRestResource
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
List<User> findByUsername(@PathParam("username") String username);
public interface UserRepository extends CrudRepository<User, Long> {
}