Added missing PantryRepository

This commit is contained in:
Tim Holloway 2022-01-17 09:03:09 -05:00
parent 95641cf00b
commit d708029fb6

View File

@ -0,0 +1,30 @@
package com.mousetech.gourmetj.persistence.dao;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.mousetech.gourmetj.persistence.model.Pantry;
import com.mousetech.gourmetj.persistence.model.Shopcat;
/**
* JpaRepository for Shopping Categories, which relate ManyToOne
* to Ingredient. Service method is @see RecipeService
*
* @author timh
* @since Dec 28, 2021
*/
@Repository
public interface PantryRepository
extends JpaRepository<Pantry, Long> {
public Pantry findPantryByIngkey(String ingkey);
public void deleteByIngkey(String key);
}