Switch from crud to paging and sorting, adjust paths and rels
This commit is contained in:
parent
96671d5350
commit
3a48734544
@ -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> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user