Make UserRepository from type PagingAndSorting
This commit is contained in:
parent
ce81ff07ba
commit
b40d87375a
@ -1,6 +1,14 @@
|
|||||||
package de.hft.geotime.user;
|
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> {
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user