From 24bc9d5fdcda242a3078d8bea2f6812e594992c6 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Thu, 13 Jun 2024 08:57:21 +0200 Subject: [PATCH] Fix Spring Data compilation after Spring bump upstream --- .../main/java/org/acme/spring/data/rest/BookRepository.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)