Switch from crud to paging and sorting, adjust paths and rels

This commit is contained in:
Marcel Schwarz 2020-05-13 14:02:24 +02:00
parent 96671d5350
commit 3a48734544

View File

@ -1,7 +1,13 @@
package de.hft.geotime.timetrackaccount; package de.hft.geotime.timetrackaccount;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
public interface TimetrackAccountRepository extends CrudRepository<TimetrackAccount, Long> { @RepositoryRestResource(
path = "accounts",
itemResourceRel = "accounts",
collectionResourceRel = "accounts"
)
public interface TimetrackAccountRepository extends PagingAndSortingRepository<TimetrackAccount, Long> {
} }