diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryRepository.java index 65cb322..21037bc 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryRepository.java @@ -16,7 +16,10 @@ import org.springframework.data.rest.core.annotation.RestResource; ) public interface CategoryRepository extends CrudRepository { - @RestResource(path = "category", rel = "category") + @RestResource(exported = false) public List findByName(@Param("name") String name); + @RestResource(path = "category", rel = "category") + public List findByNameIgnoreCaseContaining(@Param("name") String name); + } \ No newline at end of file