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.ProductType;

@Repository
public interface ProductTypeRepository extends MyRepository<ProductType, Integer> {

    Optional<ProductType> findByName(String name);

    Optional<ProductType> findByCode(String code);
}
