package com.ecep.contract.ds.project.repository;

import java.util.Optional;

import org.springframework.stereotype.Repository;

import com.ecep.contract.ds.MyRepository;
import com.ecep.contract.model.ProductUsage;

@Repository
public interface ProductUsageRepository extends MyRepository<ProductUsage, Integer> {

    Optional<ProductUsage> findByName(String name);

    Optional<ProductUsage> findByCode(String code);
}
