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

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

import devopsdistilled.operp.server.data.entity.stock.Stock;

@Repository
public interface StockRepository extends JpaRepository<Stock, Long> {
	

}

@@ -160,17 +160,76 @@
 sitory;%0A
+import devopsdistilled.operp.server.data.entity.items.Item;
 %0A
-
 import d
@@ -280,16 +280,81 @@
 k.Stock;
+%0Aimport devopsdistilled.operp.server.data.entity.stock.Warehouse;
 %0A%0A@Repos
@@ -433,9 +433,69 @@
 %3E %7B%0A
-
 %09
+Stock findByItemAndWarehouse(Item item,Warehouse warehouse);
 %0A%0A%7D%0A

Create functionalities to find stock with item and warehouse