package io.pivotal.persistence;


import io.pivotal.model.Package;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(collectionResourceRel = "packages", path = "packages")
public interface PackageRepository extends PagingAndSortingRepository<Package, Long> {
}

@@ -131,16 +131,72 @@
 sitory;%0A
+import org.springframework.data.repository.query.Param;%0A
 import o
@@ -265,16 +265,40 @@
 ource;%0A%0A
+import java.util.List;%0A%0A
 @Reposit
@@ -455,10 +455,95 @@
 Long%3E %7B%0A
+    public List%3CPackage%3E findByNameContainingIgnoreCase(@Param(%22name%22) String name);%0A
 %7D%0A

allow for searching by name