feat(DeleteRecipe): implementado repositorio para eliminar recetas básico

parent 1a580ea4
package com.example.apprecetas.recipe.domain.repository;
import com.example.apprecetas.recipe.infrastructure.repository.jpa.RecipeJpa;
public interface DeleteRecipeRepository {
void delete(RecipeJpa recipeJpa);
}
package com.example.apprecetas.recipe.infrastructure.repository.impl;
import com.example.apprecetas.recipe.domain.repository.DeleteRecipeRepository;
import com.example.apprecetas.recipe.infrastructure.repository.jpa.RecipeJpa;
import com.example.apprecetas.recipe.infrastructure.repository.jpa.RecipeRepositoryJpa;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class DeleteRecipeRepositoryImpl implements DeleteRecipeRepository {
@Autowired
private RecipeRepositoryJpa repositoryJpa;
@Override
public void delete(RecipeJpa recipeJpa) {
repositoryJpa.delete(recipeJpa);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment