From c926c54557d3289dda567d242bc8eb679fda8ddc Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Wed, 12 Jun 2024 14:23:56 +0200 Subject: [PATCH] Add `CrudRepository` as Quarkus move spring data to version 3.2 --- .../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)