diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java index b9ce44a..6260823 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java @@ -2,8 +2,6 @@ package com.fjordtek.bookstore.model.book; -import java.util.List; - import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import org.springframework.data.rest.core.annotation.RepositoryRestResource; @@ -26,9 +24,9 @@ import org.springframework.data.rest.core.annotation.RestResource; public interface CategoryRepository extends CrudRepository { @RestResource(exported = false) - List findByName(@Param("name") String name); + Category findByName(@Param("name") String name); @RestResource(path = "category", rel = "category") - List findByNameIgnoreCaseContaining(@Param("name") String name); + Category findByNameIgnoreCaseContaining(@Param("name") String name); } \ No newline at end of file