package devopsdistilled.operp.server.data.repo.items;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import devopsdistilled.operp.server.data.entity.items.Brand;
import devopsdistilled.operp.server.data.entity.items.Item;
import devopsdistilled.operp.server.data.entity.items.Product;

@Repository
public interface ItemRepository extends JpaRepository<Item, Long> {

	List<Item> findByProductAndBrand(Product product, Brand brand);

	List<Item> findByItemName(String itemName);

}

@@ -52,32 +52,8 @@
 s;%0A%0A
-import java.util.List;%0A%0A
 impo
@@ -428,26 +428,20 @@
 ng%3E %7B%0A%0A%09
-List%3C
 Item
-%3E
  findByP
@@ -492,18 +492,12 @@
 ;%0A%0A%09
-List%3C
 Item
-%3E
  fin

Change return type of declared method to new unique constraints