diff --git a/602-spring-data-rest/src/main/java/org/acme/spring/data/rest/BookRepository.java b/602-spring-data-rest/src/main/java/org/acme/spring/data/rest/BookRepository.java index 74b0ac69..1847fc80 100644 --- a/602-spring-data-rest/src/main/java/org/acme/spring/data/rest/BookRepository.java +++ b/602-spring-data-rest/src/main/java/org/acme/spring/data/rest/BookRepository.java @@ -5,12 +5,13 @@ import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; +import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.PagingAndSortingRepository; import org.springframework.data.rest.core.annotation.RepositoryRestResource; import org.springframework.data.rest.core.annotation.RestResource; @RepositoryRestResource(exported = false, path = "books", collectionResourceRel = "books") -public interface BookRepository extends PagingAndSortingRepository { +public interface BookRepository extends PagingAndSortingRepository, CrudRepository { @Override @RestResource(exported = true)